Project

General

Profile

Actions

Bug #1240

closed

WText: Generates span for xhtml while it shouldn't.

Added by Kurt Roeckx about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/16/2012
Due date:
% Done:

0%

Estimated time:

Description

Hi,

If I create a WText() with xhtml in, and it has for instance a

in it, the w3.org html validator will give an error since it creates a for it, which changes to a "phrasing content" model, in which

isn't allowed.

is only allowed when in "flow content" and "palpable content".

Kurt

Actions #1

Updated by Koen Deforche almost 12 years ago

  • Status changed from New to Closed
  • Assignee set to Koen Deforche
  • Target version set to 3.2.2

Hey,

WText is indeed not that clever --- it has some simple heuristics to switch to a

but these are not exhaustive.

You should in this case call text->setInline(false).

Regards,

koen

Actions

Also available in: Atom PDF