Skip to main content
Jared Hess
Legend
October 24, 2012
Question

Easily remove in-line Conditional Build Tags?

  • October 24, 2012
  • 1 reply
  • 445 views

I'm wondering if there's an easy way to remove all Conditional Build Tags (CBT) inside a topic. Has anyone come up with a quick way to do this?

The problem I'm running into is I want to remove some CBTs on some list items. But it's not easy to remove the CBTs because the right-click menu item to deselect the CBT is grayed out unless I select a certain sub-set of the list just right.  Sometimes this even happens on a single sentence. I have to select a part of the sentence and remove that part first and then the other part. It seems due to in-line formatting that's affecting this. I'm hoping there's an easier way. Any scripts out there that do this?

I can probably figure out how to do it in Notepad++ with regular expression pattern matching, but that's a hassle if there's an easier solution.

I'm using RH 9.02.271.

This topic has been closed for replies.

1 reply

Peter Grainge
Community Expert
Community Expert
October 24, 2012

If you right click in a paragraph you should see either Remove Attribute or Remove Attributes.

If Remove Attribute and the attribute is a CBT, then Rh will remove it cleanly.

If Remove Attributes, when you click the option you will get a dialog and can select the span tags you want removed.

Not quite what you want but it does work cleanly.

Back up first though just in case you remove too much.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Jared Hess
Legend
October 26, 2012

Thanks Peter. The problem is I'm looking at a Japanese localized project and can't tell what it is I'm removing using the right-click Remove Attribute method.

Anyway, I ended up creating my own script in ExtendScript that removes all of a specified CBT in a topic's text.