1. ralph
  2. RO CSVI
  3. Thursday, 06 September 2018
  4.  Subscribe via email
Joomla 3.8.6
PHP 5.6.25
Virtuemart 3.2.12
CSVI Pro 7.7.0

I applied the rule detailed here: https://csvimproved.com/support/questions-and-answers/1574-removing-line-breaks

However, I am still seeing line breaks. Would there be an additional regular expression I can add to the rule to prevent this from happening? I am really not sure why the /\r\n/ regex is not sufficient.

I am attaching a .txt sample of the exported file here for reference. You can see the first instance of the break occurring for SKU: ACVBUR-D
Accepted Answer Pending Moderation
Hello,
I am attaching a .txt sample of the exported file here for reference. You can see the first instance of the break occurring for SKU: ACVBUR-D

Just to confirm, are you saying about product_desc field of product with SKU ACVBUR-D is having an issue? if yes, can you check in database on how this value has been stored? Probably they are not separated with \r\n and so the rule did not apply there.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Thank you for the reply. I think the problem may be occurring with the XHTML formatting of the br tag in the product_desc field for some of our products. I am not that familiar with regex but it looks like the \r\n expression does not recognize <br />

If this is the case, could you suggest a rule I can add to replace the <br /> ?

Here is the source code for product_desc field of SKU ACVBUR-D that I referenced:

<p>An outstanding example of Chinese art and craft, every inch of this 5 piece imperial censer is covered in elaborate detail. Evidence of its age can be identified by the Qianlong Nian Zhi mark that is situated on the base of the center body piece, directly between the tripod legs. This particular mark is called an apocryphal mark by auctioneers and collectors because it was meant to be a tribute to similar works created for the imperial household during the Qing Dynasty (1644-1911). The cloisonne incense burners were often seen at the hall of imperial family which represented power and royalty. Ours will last for generations to admire. <br /> <br />Meant to burn incense, the medium for this censer is a combination of bronze casting and cloisonne. Cloisonne is an incredibly tedious technique that involves creating pockets, or cloisonne, out of copper or bronze wire. These pockets then serve as enclosures for glass paste or enamel to be filled in. Each pocket is a singular component to the overall design. When viewed as a whole on a piece of this scale, the mosaic like effect is absolutely stunning. </p>
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
was able to fix the issue by adding additional operations to the rule, one for each of the following:

\n\r

\r\n

\r

\n
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Hello,
was able to fix the issue by adding additional operations to the rule, one for each of the following:

Yes, that is a way for fixing this issue. I hope you also added an additional rule to replace <br />.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!