You are here: PSPad forum > English discussion forum > (Q)Html to text

(Q)Html to text

Goto Page: 1 2 Next

#1 (Q)Html to text

Posted by: Neolinkster | Date: 2015-09-23 13:30 | IP: IP Logged

When using the convertor, It removes all the spacing for paragraphs is there any file I can edit, or something else I can use in conjunction with pspad to keep the paragraph spacings in the document?

Options: Reply | Quote | Up ^


#2 Re: (Q)Html to text

Posted by: pspad | Date: 2015-09-23 13:37 | IP: IP Logged

subfolder .\Convert
Convertor definition is in the plaintext file

Look at section [Remove chars]

Options: Reply | Quote | Up ^


#3 Re: (Q)Html to text

Posted by: Neolinkster | Date: 2015-09-23 20:35 | IP: IP Logged

looked there not seeing the 1 assigned for the html to text config and the way the document is coded theres no <break> &para; or even </p> to denote that there is a empty line of space there what would I put in there to have it aknowledge that there was a

ex:spacing between the paragraphs?

Options: Reply | Quote | Up ^


#4 Re: (Q)Html to text

Posted by: Andreas | Date: 2015-09-24 01:02 | IP: IP Logged

So maybe you should use a simple multiline search replace with<.*?>

Options: Reply | Quote | Up ^


#5 Re: (Q)Html to text

Posted by: pspad | Date: 2015-09-24 04:50 | IP: IP Logged

Neolinkster:
looked there not seeing the 1 assigned for the html to text config and the way the document is coded theres no <break> &para; or even </p> to denote that there is a empty line of space there what would I put in there to have it aknowledge that there was a

ex:spacing between the paragraphs?

Example please?

Options: Reply | Quote | Up ^


#6 Re: (Q)Html to text

Posted by: pspad | Date: 2015-09-24 05:55 | IP: IP Logged

Remove tags (I guess you talk about this function) does what described - it removes tags and let text between.

If you want to have separate paragraphs, simple call HTML reformat before or use TiDy to reformat your HTML (you can configure it). This will separate paragraphs, line breaks, ...
When you will use Remove tags, you will get text with separated paragraphs as you need.

Options: Reply | Quote | Up ^


#7 Re: (Q)Html to text

Posted by: Andreas | Date: 2015-09-24 10:21 | IP: IP Logged

pspad:
Remove tags (I guess you talk about this function) does what described - it removes tags and let text between.

I think this is not entirely correct.

<p>paragraph</p>

  <p>paragraph</p>

results in

 paragraph
   paragraph

Also watch for the extra single space at the beginning of every line.

Options: Reply | Quote | Up ^


#8 Re: (Q)Html to text

Posted by: carbonize | Date: 2015-09-24 17:27 | IP: IP Logged

Andreas:
pspad:
Remove tags (I guess you talk about this function) does what described - it removes tags and let text between.

I think this is not entirely correct.

<p>paragraph</p>

  <p>paragraph</p>

results in

 paragraph
   paragraph

Also watch for the extra single space at the beginning of every line.

Leaving the spaces is the correct behaviour. You are just removing tags not reformatting.

--
Carbonize

Options: Reply | Quote | Up ^


#9 Re: (Q)Html to text

Posted by: Andreas | Date: 2015-09-24 19:00 | IP: IP Logged

No, it did not just remove the tags in my 4.6.0 2671 installation.

As you can see in my post it removes empty newlines and puts an extra space at the beginning of every line.

Options: Reply | Quote | Up ^


#10 Re: (Q)Html to text

Posted by: carbonize | Date: 2015-09-24 20:00 | IP: IP Logged

Andreas:
No, it did not just remove the tags in my 4.6.0 2671 installation.

As you can see in my post it removes empty newlines and puts an extra space at the beginning of every line.

OK just tried it and see what you mean but it is worse than that. A . represents a space

<p>blah</p>

...<p>blah</p>

......<p>blah</p>

Becomes

.blah
...blah
...blah

Ignore the bizarre formatting in the second code block. Not sure why the forum does that.

--
Carbonize

Options: Reply | Quote | Up ^


Goto Page: 1 2 Next





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR