hassanakbar4 / tractive-test

0 stars 0 forks source link

handling of <section> title attribute is inconsistent #274

Closed hassanakbar4 closed 3 years ago

hassanakbar4 commented 10 years ago

component_Version 2 cli resolution_fixed type_defect | by tony@att.com


Consider this input:

<section title=" title  string ">
               #1     #2      #3

Note the leading whitespace !#1, the internal extra whitespace !#2, and the trailing whitespace !#3.

Here's an example input:

    <section title=' History of   XYZ with RFCs and Internet Drafts   '>

v1 output:

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . 3
   2.  History of   XYZ with RFCs and Internet Drafts  . . . . . . . . 3

v2 output:

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.   History of   PDF with RFCs and Internet Drafts . . . . . . .   2

!#1) With v1, leading white space is stripped. With v2, leading white space is kept. !#2) With both v1 and v2, internal whitespace is maintained. !#3) With both v1 and v2, trailing whitespace is stripped. (The dots would have started later if they weren't.)

I consider the different handling of !#1 in v2 to be a bug.


Issue migrated from trac:274 at 2021-10-20 18:17:23 +0500

hassanakbar4 commented 9 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed status from new to closed

hassanakbar4 commented 9 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed resolution from ` tofixed`

hassanakbar4 commented 9 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


Fixed in [1809]:

Fixed a bug where leading whitespace in title attributes weren't handled properly. Fixes issue #274.