You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ja...@apache.org on 2013/10/15 22:10:41 UTC

svn commit: r1532509 - /openoffice/branches/l10n40/main/l10ntools/source/gConXhpWrap.cxx

Author: jani
Date: Tue Oct 15 20:10:41 2013
New Revision: 1532509

URL: http://svn.apache.org/r1532509
Log:
change to allow tags like <emp/>, yes we have them, for whatever reason.

Modified:
    openoffice/branches/l10n40/main/l10ntools/source/gConXhpWrap.cxx

Modified: openoffice/branches/l10n40/main/l10ntools/source/gConXhpWrap.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/l10n40/main/l10ntools/source/gConXhpWrap.cxx?rev=1532509&r1=1532508&r2=1532509&view=diff
==============================================================================
--- openoffice/branches/l10n40/main/l10ntools/source/gConXhpWrap.cxx (original)
+++ openoffice/branches/l10n40/main/l10ntools/source/gConXhpWrap.cxx Tue Oct 15 20:10:41 2013
@@ -164,7 +164,10 @@ void convert_xhp::closeTag(char *yytext)
 void convert_xhp::closeTagNOvalue(char *yytext)
 {
   copySourceSpecial(yytext, 0);
-  meExpectValue = VALUE_NOT_USED;
+ if (meExpectValue == VALUE_IS_VALUE_TAG)
+   meExpectValue = VALUE_IS_VALUE;
+ else
+   meExpectValue = VALUE_NOT_USED;
 }
 
 
@@ -323,16 +326,14 @@ void convert_xhp::stopComment(char *yyte
 /**********************   I M P L E M E N T A T I O N   **********************/
 void convert_xhp::handleSpecial(char *yytext)
 {
-  std::string& sText = copySourceSpecial(yytext, 0);
-  int          nX    = msCollector.size();
-
-
   if (meExpectValue != VALUE_IS_VALUE || meExpectValue != VALUE_IS_VALUE_TAG)
   {
-    msCollector.erase(nX);
+    std::string sText(yytext);
     mcMemory.convertFromInetString(sText);
     msCollector += sText;
   }
+  else
+    copySourceSpecial(yytext, 0);
 }