Skip Menu |

This queue is for tickets about the ODF-lpOD CPAN distribution.

Report information
The Basics
Id: 70100
Status: resolved
Priority: 0/
Queue: ODF-lpOD

People
Owner: Nobody in particular
Requestors: charles.minc [...] wanadoo.fr
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.115
Fixed in: 1.116



Subject: Span-First char
It seems that the first character of a paragraph could not be set by the following span statement : my $fou= "a1234567890\nb1234567890\nc1234567890\nd1234567890\n" ; my $p5=odf_paragraph->create(text=>$fou) ; $lpod->get_body->append_element($p5) ; $p5->set_span(offset=>$_,length=>1,style=>"gras") for (0..length($fou)); To be a little bit clearer : span didn't work with $offset=0 ; but $p5->set_span(filter=>'a',style=>"gras") ; run I want just add these comments, maybe for a little bit more accurate documentation : 1/ when using $p->set_text(...) the style in use is always applied instead of $p->set_span(...) that reset the style of others elements not changed by the filter. 2/ in multiline string Perl counts all the characters including EOL but ODF-lpOD when using "position" skips them. Regards.
Note: the same bug affects set_hyperlink(), whose positioning logic is the same as set_span().
Note: ODF line breaks, like tab stops, are special markup elements; they are separators between text segments, not characters.
Fixed in 1.116