- π«π·France xavier.masson Haute-Normandie
I've reroll the patch for the 2.1.x and just applied the same code as applied in the Drupal core for that issue Html::transformRootRelativeUrlsToAbsolute() replaces "\r\n" with " \n" (#3311595) β
- First commit to issue fork.
- Status changed to Postponed: needs info
over 1 year ago 2:43pm 25 June 2023 - πΊπΈUnited States ultimike Florida, USA
Before any patch is reviewed, we need to have a failing test for this issue. The following is what is needed:
1. A sample string.
2. The number of characters or words to smart trim the sample string by.
3. The correct result after smart trimming the sample string.Here's my attempt (but in all honesty, I'm not sure if my "correct result" is what we're looking for):
1. "Carriage return test \r\n from issue 3101169"
2. 35 characters
3. 'Carriage return test \n from'Currently, with the proposed fix in place (I actually put it in TruncateHTML->init()) this test does not pass. Smart Trim instead returns this:
'Carriage return test from issue'
So, setting this to "Postponed (maintainer needs more info)" so that we can get some solid test data.
Also - I've created an issue fork for this (with my failing test and proposed fix), future work on this issue should be there (not in patches).
Thanks everyone, for your efforts so far!
-mike - π©πͺGermany maacl
The Issue I referenced 3 years ago has been closed as duplicate of #3311595: Html::transformRootRelativeUrlsToAbsolute() replaces "\r\n" with " \n" β , which has been fixed in 10.1. Does this fix the Issue here?
- πΊπΈUnited States ultimike Florida, USA
@maacl - I am honestly not sure, mainly because I am unsure of the desired outcome. If the desired outcome is to not have an encoded character returned, then my test yesterday indicates that the issue is not fixed.
Like I wrote in my previous comment, we really need a definitive test case for this task before we can proceed.
-mike