Skip navigation
JaredHess
Currently Being Moderated

Zombie <span> Tag Apocalypse!

Oct 13, 2011 10:48 AM

Using RH 9 and Windows 7, 64-bit. Recently upgraded from RH 7.

 

Hi Folks,

 

I'm trying to survive a zombie <span> apocalypse! Here's what a portion of one of my .htm topics in my project looks like inside of the Notepad++ text editor:

 

10-13-2011 10-08-13 AM.jpg

 

Notice that these span tags are empty. My understanding is that tags without any attributes in them don't do anything. Right?

 

Anyway, there are some 1000 emtpy <span> tags in 18 topics that don't have any attributes in them. I've checked the revision history for one of our files, and it appears that this started happening sometime after the upgrade to RH 9. The initial conversion to RH 9 didn't increase the # of <span> tags, but subsequent edits and saves to the file I checked seems to be causing it.

 

For example in this revision history view from Mercurial, it shows a single change from one revision to the next revision. Notice the increase in tags:

 

10-13-2011 10-18-56 AM.jpg

 

Does anyone know what's causing this? There was no visual indication this was happening inside the WYSIWYG editor in RH. It's only now when we submitted the files for localization, that our localization department ran into them when preparing this project for localization. Here's what they saw:

10-12-2011 5-24-38 PM.jpg

 

Any ideas why this is happening and on how to fix it? To fix it, I'm thinking of doing a Find and Replace across my project in Notepad++ and removing any empty <span> tag, and then opening the project back up inside of the RH editor. I'm hoping this would then remove the closing unmatched </span>?

  • Currently Being Moderated
    Community Professional
    Oct 13, 2011 10:55 AM

    See Item 10. http://www.grainge.org/pages/authoring/rh9/using_rh9.htm

     

    Rather than use a find and replace tool for only 18 topics, consider using Remove Attributes. Slower but safer. Just right click in each paragraph.

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

    |
    Mark as:
  • Currently Being Moderated
    Community Professional
    Oct 13, 2011 10:57 AM

    Note that Item 10 is shaded blue. That is explained at the top of my page. You may have done the damage before you applied the patch, you did apply it didn't you?

     


    See www.grainge.org for RoboHelp and Authoring tips

     

    @petergrainge

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Oct 14, 2011 1:26 AM

    Hi,

     

    My Remove inline styling script will also delete any empty span tags, see http://www.wvanweelden.eu/robohelp/extendscript/remove_inline_styling

     

    Note that this script does more than remove span tags as it will remove all your inline styling. But by removing the code you don't need, you can easily configure the script to only remove the span tags. Important: Make a backup before running the script!

     

    Greet,

     

    Willam

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Oct 19, 2011 1:59 AM

    Hi,

     

    For the span tags, see http://www.wvanweelden.eu/robohelp/zombie_span_tag_apocalypse_cleaner for quickly removing the span tags from your project. It'll correctly remove the corresponding end tag of the spans, something that might give problems with a find and replace operation.

     

    For the conditional build tags, I don't see an easy way to fix that.

     

    Greet,

     

    Willam

    |
    Mark as:
  • Currently Being Moderated
    Community Professional
    Oct 19, 2011 8:06 AM

    Hi Willam

     

    Perhaps your experience has been different than mine, but I find that all I need to do is remove the beginning span tags. When I do that, it leaves behind gobs of orphaned closing span tags. RoboHelp sees them as orphans and deletes them for me.

     

    Cheers... Rick

     

    Helpful and Handy Links

    RoboHelp Wish Form/Bug Reporting Form

    Begin learning RoboHelp HTML 7, 8 or 9 within the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone Blog

    RoboHelp eBooks

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Oct 19, 2011 8:13 AM

    Such a great tool. Who'd have thought that

     

    Greet,

     

    Willam

    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points