Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#29 Heading number removal incomplete

closed-fixed
Christian
None
5
2008-04-14
2008-03-12
Christian
No

While converting headings, manually added section numbers are removed. So for example,

2.1.3 Some Section Title => ===Some Section Title===

However, only the numbers 1-9, dots, and spaces get removed so

2.0 Some Section Title => ==0Some Section Title==

'0's should be removed too.

----
To fix this, go to the function MW_SurroundHeader and change the line

Do While (Asc(.Text) >= 49 And Asc(.Text) <= 57) Or .Text = "." Or .Text = " " Or .Text = vbTab 'remove 1 to 9, .

to

Do While (Asc(.Text) >= 48 And Asc(.Text) <= 57) Or .Text = "." Or .Text = " " Or .Text = vbTab 'remove 0 to 9, .

Discussion

  • Christian
    Christian
    2008-03-12

    Patch to fix above and add some documentation

     
  • Christian
    Christian
    2008-03-12

    Logged In: YES
    user_id=2032487
    Originator: YES

    File Added: modWord2MediaWikiPlus.patch

     
  • Christian
    Christian
    2008-04-14

    • assigned_to: nobody --> cneubauer
    • status: open --> closed-fixed
     
  • Christian
    Christian
    2008-04-14

    Logged In: YES
    user_id=2032487
    Originator: YES

    Working in the word2007 branch with r22