Bug #19247
closed"removeformat" messes up some in-line formats
0%
Description
When "removeformat" for Word is run on a sequence like
<p> <b>abc</b><b> </b><b>def</b> </p>
<p>abcdef</p>
The result will be
<p> <b>abc</b><b>><b>def</b> </b></p><b> </b><p><b>abcdef</b></p>
instead of
<p> <b>abc def</b></p><p>abcdef</p>
While the extra >, only shows up in certain test cases, the much bigger problem of, the bold setting not being reset seems to affect any sequence that resets bold too often. However, this is quite common in copy&paste imports from Word.
(issue imported from #M9218)
Files
Updated by Stanislas Rolland over 14 years ago
The attached patch fixes the issue by correcting the regular expression that was mishandling the bold tags. It also fixes some other incorrectly escaped regular expressions.
Updated by Stanislas Rolland over 14 years ago
Committed to SVN TYPO3core
- trunk (revision 7098)
- TYPO3_4-3 (revision 7099)
- TYPO3_4-2 (revision 7100)