cuberat / Pod-POM-View-Restructured

CPAN module Pod::POM::View::Restructured
1 stars 2 forks source link

B<>> converted incorrectly #14

Closed ole-tange closed 2 years ago

ole-tange commented 2 years ago
Foo B<>> bar B<baz>.                                                                      

Foo B<>>> bar B<baz>.                                                                     

Foo B<>>>> bar B<baz>.

Gives:

Foo \ ****\ > bar \ **baz**\ .

Foo \ ****\ >> bar \ **baz**\ .

Foo \ ****\ >>> bar \ **baz**\ .

Should give:

Foo \ **>**\  bar \ **baz**\ .

Foo \ **>>**\  bar \ **baz**\ .

Foo \ **>>>**\  bar \ **baz**\ .
alexm commented 2 years ago

In this case, pod2html gives the same result: the greater than signs after bold sequence. Which means that pod2rst is doing the right thing, AFAICS.

You should probably escape those, as in E<gt>, i.e:

Foo B<E<gt>> bar B<baz>.

Foo B<E<gt>E<gt>> bar B<baz>.

Foo B<E<gt>E<gt>E<gt>> bar B<baz>.

Can you confirm that it works for you too?

ole-tange commented 2 years ago

That works.

Thanks.