Project

General

Profile

Actions

Bug #19247

closed

"removeformat" messes up some in-line formats

Added by Christian Lerrahn over 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-08-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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 &gt, 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


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #18717: Could not remove span with style and font tagsClosedStanislas Rolland2008-04-28

Actions
Related to TYPO3 Core - Bug #21442: RTE 'remove formatting' function corrupts typo3 linksClosedStanislas Rolland2009-11-03

Actions
Actions #1

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.

Actions #2

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)

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF