TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:Re: Converting paragraphs to a table in Flare From:Mike Stockman <mstockman -at- gmail -dot- com> To:TECHWR-L Writing <techwr-l -at- lists -dot- techwr-l -dot- com> Date:Mon, 21 Jun 2010 17:54:07 -0400
It's not quite instant, and it's Flare-irrelevant, but I would do it in the source code, with three searches:
1) Search for <p> and replace it with <table><tr><td>
2) Search for </p> and replace it with </td></tr></table>
3) Search for <table>\n</table> and replace it with \n
Done.
The only trick is that your text editor needs to have regular expressions to replace \n (newlines).
Also, you don't end up with a perfectly correct table... there's no summary, and you're not including a heading (or labeling thead and tbody for that matter). But I leave that as an exercise for the reader. :-)
Mike
On Jun 21, 2010, at 3:58 PM, McLauchlan, Kevin wrote:
> Anybody do that?
>
>
> The text is from a command-line utility. 297 paragraphs... this week.
> I paste those into a Flare topic. They're all <p> </p>.
>
> How to instantly make them become a single-column 297-row table?
>
> Or, how to create a 297-row table and paste the 297 paragraphs
> all at once, so they each fall into a separate cell/row?
> Copying the paras into the buffer, then selecting the table
> and pasting ... doesn't have that result (though it would/does
> in a word processor).
>
> It's easy enough in Word or OOo, but I want to avoid importing
> formatted stuff from another app into Help - it always comes
> back to haunt me somehow.
>
>
>
>
>
> Kevin McLauchlan
> Senior Technical Writer
> SafeNet, Inc.
> --
>
> The information contained in this electronic mail transmission
> may be privileged and confidential, and therefore, protected
> from disclosure. If you have received this communication in
> error, please notify us immediately by replying to this
> message and deleting it from your computer without copying
> or disclosing it.
>
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Gain access to everything you need to create and publish information
> through multiple channels. Your choice of authoring (and import)
> formats with virtually any output. Try Doc-To-Help free for 30-days.
>http://www.doctohelp.com/
>
>
> ---
> You are currently subscribed to TECHWR-L as mstockman -at- gmail -dot- com -dot-
>
> To unsubscribe send a blank email to
> techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
> or visit http://lists.techwr-l.com/mailman/options/techwr-l/mstockman%40gmail.com
>
>
> To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com
>
> Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
>http://www.techwr-l.com/ for more resources and info.
>
> Please move off-topic discussions to the Chat list, at:
>http://lists.techwr-l.com/mailman/listinfo/techwr-l-chat
>
Gain access to everything you need to create and publish information
through multiple channels. Your choice of authoring (and import)
formats with virtually any output. Try Doc-To-Help free for 30-days. http://www.doctohelp.com/
---
You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-