question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`<mj-raw>` contents must be in a new line to be output unmodified

See original GitHub issue

The following snippet will only output the second <?php endif ?>

<mj-raw><?php endif ?></mj-raw>
  <mj-raw>
  <?php endif ?>
</mj-raw>

Verifiable on try-it-live

Expected behavior:

<mj-raw> contents should be output, untouched, even if the opening tag, content and closing tag are on the same line.

Observed behavior:

<mj-raw> contents may be parsed/modified if the tags and content are on the same line

MJML version:

mjml-core: 4.1.2 mjml-cli: 4.1.2 Current mjml try-it-live

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
iRyusacommented, Nov 29, 2018

Looks like we’ve found a fix about this, so let’s hope it will be fixed in 4.3 👍

2reactions
gilericommented, Sep 26, 2018

Yes that’s a whole can of worms I suppose, but as the workaround is quite easy (putting mj-raw content on a newline), the issue is less impacting.

Maybe it could be useful in the <mj-raw> component documentation to either point to this issue or explain the workaround there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Audits of Single Financial Statements and Specific ...
10 should include consideration of whether the application of the financial reporting framework will result in a presentation that provides adequate disclosures ...
Read more >
Consolidated Audit Guide for Audits of ...
This audit guide is to assist the independent auditor (auditor) in performing audits of profit-motivated entities that are subject to the U.S. ...
Read more >
R - do I need to add explicit new line character with print()?
The nature of R means that you're never going to have a newline in a character vector when you simply print it out....
Read more >
fprintf output line break - MATLAB Answers
I am writing a code where under a string is generated and stored in an array. After the array is stored, I use...
Read more >
Creating a New Line in C++
There are a few crucial components you need to output text in C++. Understanding how you can use these components will help to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found