Skip to main content
Inspiring
Apr 5, 2012 9:03 PM UTC
Question

Line feeds and indentations

Is there any way to get RoboHelp (RH9) to stop inserting line feeds and indentations into the HTML code?

I often have to do massive search and replace scripts and having these *&%(& extra characters makes it very difficult. A line of code that starts out in my text editor like this:

<p class="Menu-Descriptions"><a href="../ToolbarMap/Transform_Toolbar.htm" id="a10" style="position: relative; ">Transform toolbar</a></p>

ends up looking like this:

<p class="Menu-Descriptions"><a href="../ToolbarMap/Transform_Toolbar.htm"

                                                                                 id="a10" style="position: relative;">Transform

toolbar</a></p>

It makes it harder to search for "Transform toolbar".

Any thoughts?

~Margaret Becker

www.rhino3d.com

www.rhino3d.com/5/help

This topic is closed to new replies. Start a new post to keep the conversation going.

11 replies

Willam van Weelden
Inspiring
Apr 6, 2012 6:43 AM UTC

Hi,

There’s no way that I know of. But you can use a tool dnGrep (http://code.google.com/p/dngrep/) that can ignore line feeds.

Greet,

Willam

Translate
Inspiring
Apr 6, 2012 3:52 PM UTC

Thanks. This looks useful.

~Margaret

Translate
Inspiring
Apr 6, 2012 9:30 PM UTC

Here's another task that doesn't work with all these indentations, etc.... List sorting - alphabetical.

So, I have a list like this with RoboHelp formatting::

<p class="Menu-Descriptions"><a href="../ToolbarMap/Geometry_Fix_Toolbar.htm"

                                                                                 id="a3" style="position: relative; ">Geometry

Fix toolbar</a></p>

<p class="Menu-Descriptions"><a href="../ToolbarMap/point_edit_toolbar.htm"

                                                                                 id="a4" style="position: relative; ">Point

Edit toolbar</a></p>

<p class="Menu-Descriptions"><a href="../ToolbarMap/Curves_Toolbar.htm"

                                                                                 id="a5" style="position: relative; ">Curves

toolbar</a></p>

Sorting result 

 

Edit toolbar</a></p>

Fix toolbar</a></p>

toolbar</a></p>

                                                                                 id="a3" style="position: relative; ">Geometry

                                                                                 id="a4" style="position: relative; ">Point

                                                                                 id="a5" style="position: relative; ">Curves

<p class="Menu-Descriptions"><a href="../ToolbarMap/Curves_Toolbar.htm"

<p class="Menu-Descriptions"><a href="../ToolbarMap/Geometry_Fix_Toolbar.htm"

<p class="Menu-Descriptions"><a href="../ToolbarMap/point_edit_toolbar.htm"

 

What should happen:

Properly formatted list:

<p class="Menu-Descriptions"><a href="../ToolbarMap/Geometry_Fix_Toolbar.htm"id="a3" style="position: relative; ">Geometry Fix toolbar</a></p>

<p class="Menu-Descriptions"><a href="../ToolbarMap/point_edit_toolbar.htm" id="a4" style="position: relative; ">Point Edit toolbar</a></p>

<p class="Menu-Descriptions"><a href="../ToolbarMap/Curves_Toolbar.htm" id="a5" style="position: relative; ">Curves toolbar</a></p>

Result:

<p class="Menu-Descriptions"><a href="../ToolbarMap/Curves_Toolbar.htm" id="a5" style="position: relative; ">Curves toolbar</a></p>

<p class="Menu-Descriptions"><a href="../ToolbarMap/Geometry_Fix_Toolbar.htm"id="a3" style="position: relative; ">Geometry Fix toolbar</a></p>

<p class="Menu-Descriptions"><a href="../ToolbarMap/point_edit_toolbar.htm" id="a4" style="position: relative; ">Point Edit toolbar</a></p>

Have I missed a RoboHelp tool somewhere?

~Margaret Becker

Translate