--- a/modules/helptools/macros/xmltoformat.sci +++ b/modules/helptools/macros/xmltoformat.sci @@ -1753,6 +1753,17 @@ function section_id = x2f_title2id(title section_id = strsubst(section_id , "&" , "_" ); + section_id = strsubst(section_id , ":" , "" ); + section_id = strsubst(section_id , "\" , "_" ); + section_id = strsubst(section_id , "/" , "_" ); + section_id = strsubst(section_id , "''" , "_" ); + section_id = strsubst(section_id , " " , " " ); + section_id = strsubst(section_id , " " , "_" ); + section_id = strsubst(section_id , "[" , "" ); + section_id = strsubst(section_id , "]" , "" ); + + return; + section_id = strsubst(section_id , "À" , "A" ); section_id = strsubst(section_id , "Á" , "A" ); section_id = strsubst(section_id , "Â" , "A" ); @@ -1810,15 +1821,6 @@ function section_id = x2f_title2id(title section_id = strsubst(section_id , "ý" , "y" ); section_id = strsubst(section_id , "ÿ" , "y" ); - section_id = strsubst(section_id , ":" , "" ); - section_id = strsubst(section_id , "\" , "_" ); - section_id = strsubst(section_id , "/" , "_" ); - section_id = strsubst(section_id , "''" , "_" ); - section_id = strsubst(section_id , " " , " " ); - section_id = strsubst(section_id , " " , "_" ); - section_id = strsubst(section_id , "[" , "" ); - section_id = strsubst(section_id , "]" , "" ); - section_id = convstr(section_id,"l"); endfunction