Project

General

Profile

Actions

Bug #807

closed

Anchor text default FormatType

Added by Kurt Roeckx over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
05/02/2011
Due date:
% Done:

0%

Estimated time:

Description

Hi,

When doing something like:

WAnchor *a = new WAnchor(root());

a->setText("< 100");

The log file will show:

[error] "Error reading XHTML string: expected element name"

When using something like this instead:

a->setText("foobar");

You get:

[error] "Error reading XHTML string: invalid closing tag name"

And with this:

a->setText("foobar");

You get no error.

The first 2 show the original text, while the last actually renders the break.

I have a 2 problems with this:

- I wasn't expecting that the WText would be created with TextFormat set to Wt::XHTMLText, I was expecting Wt::PlainText

  • I can't control either the TextFormat or the WText itself.

Kurt

Actions #1

Updated by Koen Deforche over 13 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.1.11

Hey Kurt,

I've added WAnchor::setTextFormat() and documented the default (XHTMLText).

You can work around this issue by not using the text API from WAnchor but adding your own WText() to it instead.

Regards,

koen.

Actions #2

Updated by Koen Deforche about 13 years ago

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: Atom PDF