Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Possible to create a single string of text 1

Status
Not open for further replies.

seabaz2000

IS-IT--Management
Feb 24, 2006
79
IE
Hi
I was just wonder whether or not it was possible to create a single line string of text in a word processor from the input of an already formatted piece of text.
For example if I inputted the following code into a word processor
Code:
 <tr>
        <td align='right' valign='top' background='images/back_1.jpg' style='background-repeat:no-repeat; background-position:top left '><table width='757'  border='0' cellspacing='0' cellpadding='0'>
          <tr align='left' valign='top'>
            <td width='139' height='100%'><table width='139' height='100%'  border='0' cellpadding='0' cellspacing='0'>
              <tr>
                <td height='8' align='left' valign='top'><img src='images/spacer.gif' width='1' height='8'></td>
              </tr>
              <tr>
                <td height='25' align='left' valign='top'><img src='images/news_2.jpg' width='66' height='25'></td>
              </tr>
              <tr>
                <td height='100%' align='left' valign='top' background='images/rep_1.jpg' style='background-repeat:repeat-y; background-position:left '><div style='padding-left:15px; padding-top:19px'><img src='images/pic_3.jpg' width='113' height='58'></div><div style='padding-left:15px; padding-top:8px; padding-right:10px'><span class='style5'><strong>Keert hertas</strong> entrsi riteor peras aetaunt plicabo neoim ipsam.</span></div>
                  <div style='padding-left:15px; padding-top:8px; padding-right:10px'><span class='style5'><strong>Voluptatem</strong>, quia volupt as sit, asperna-<br>
                    tur aut.</span></div><div class='style5' style='padding-left:55px; padding-top:5px'><img src='images/point_1.jpg' vspace='1'> <a href='#' class='style4' style='text-decoration:none '><strong>read more</strong></a></div></td>
              </tr>
            </table></td>
            <td width='369' height='100%'><table width='369' height='100%'  border='0' cellpadding='0' cellspacing='0'>
              <tr>
                <td height='8' align='left' valign='top'><img src='images/spacer.gif' width='1' height='8'></td>
              </tr>
would it be possible using a word processor to format the text to look something like this
Code:
<tr><td align='right'valign='top'background='images/back_1.jpg'style='background-repeat:no-repeat; background-position:top left '><table width='757'border='0' cellspacing='0' cellpadding='0'><tr align='left'valign='top'><td width='139'height='100%'><table width='139' height='100%' border='0' cellpadding='0' ......
i.e remove all the return spaces.
Regards
 
Word can do it: at least Word 2002 can, and probably older versions as well.

Check the extras on Replace: it will identify a paragraph, ^p, and various other specials.

If you select a block of text, it can 'replace all' just for that block. It then asks if it should do the same to the rest of the document, with the option to stop it.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top