diff options
Diffstat (limited to 'swext')
-rw-r--r-- | swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java b/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java index f583447f885f..4ef08950c11b 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java +++ b/swext/mediawiki/src/com/sun/star/wiki/EditPageParser.java @@ -130,24 +130,18 @@ public class EditPageParser extends HTMLEditorKit.ParserCallback else if ( t == HTML.Tag.TEXTAREA ) { String sName = ( String ) a.getAttribute( HTML.Attribute.NAME ); - if ( sName != null ) + if ( sName != null && sName.equalsIgnoreCase( "wpTextbox1" ) ) { - if ( sName.equalsIgnoreCase( "wpTextbox1" ) ) - { - m_nWikiArticleStart = pos; - } + m_nWikiArticleStart = pos; } } else if ( t == HTML.Tag.DIV ) { String sId = ( String ) a.getAttribute( HTML.Attribute.ID ); sClass = ( String ) a.getAttribute( HTML.Attribute.CLASS ); - if ( sId != null ) + if ( sId != null && sId.equalsIgnoreCase( "contentSub" ) ) { - if ( sId.equalsIgnoreCase( "contentSub" ) ) - { - m_bHTMLStartFound = true; - } + m_bHTMLStartFound = true; } if ( sClass != null ) { |