Kaydet (Commit) 7ab76d2b authored tarafından Eike Rathke's avatar Eike Rathke

Fix BASIC storage that stored an HTML <P> element

&lt;P STYLE=&quot;margin-bottom: 0cm&quot;&gt;
ended up in the XML stream,

Regression from

    commit 2e0a25ce
    Date:   Fri Sep 8 08:31:42 2017 +0200

        loplugin:constantparam

that removed/kept the wrong path of !bHTML/bHTML

Change-Id: I29ad9c4e7dff7a2d5537f5e52e7316aff7347c7a
üst 6af9bba9
...@@ -2457,23 +2457,8 @@ bool TextEngine::Write( SvStream& rOutput ) ...@@ -2457,23 +2457,8 @@ bool TextEngine::Write( SvStream& rOutput )
const sal_Int32 nEndPos = nPara == aSel.GetEnd().GetPara() const sal_Int32 nEndPos = nPara == aSel.GetEnd().GetPara()
? aSel.GetEnd().GetIndex() : pNode->GetText().getLength(); ? aSel.GetEnd().GetIndex() : pNode->GetText().getLength();
OUStringBuffer aText; const OUString aText = pNode->GetText().copy( nStartPos, nEndPos-nStartPos );
aText = "<P STYLE=\"margin-bottom: 0cm\">"; rOutput.WriteLine(OUStringToOString(aText, rOutput.GetStreamCharSet()));
if ( nStartPos == nEndPos )
{
// Empty lines will be removed by Writer
aText.append( "<BR>" );
}
else
{
// Text before Attribute
aText.append( pNode->GetText().copy( nStartPos, nEndPos-nStartPos ) );
}
aText.append( "</P>" );
rOutput.WriteLine(OUStringToOString(aText.makeStringAndClear(),
rOutput.GetStreamCharSet()));
} }
return rOutput.GetError() == ERRCODE_NONE; return rOutput.GetError() == ERRCODE_NONE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment