Skip to content

Instantly share code, notes, and snippets.

@boxfoot
Created May 22, 2014 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boxfoot/a3f23a9ac5edd165c066 to your computer and use it in GitHub Desktop.
Save boxfoot/a3f23a9ac5edd165c066 to your computer and use it in GitHub Desktop.
Response from actionFunction/reRender call with added spaces
</script><div class="pbBody"><span id="j_id0:main:j_id19:j_id20"></span> <div class="markdown-block"><span id="j_id0:main:j_id19:j_id48">PREVIOUS LINES OF TEXT<br /><br /> The following questions and requirements are needed to continue your on-boarding as an Advocate. Once you have finished, you will have access to ClientConnect, our system for client and resource management. One of many tools you will be provided that will help you do very important work. If you have any questions, please contact your Program Manager.&#160;<br /><br /> Welcome to the team! We are excited to change healthcare delivery in this country with you!</span><br /><br /><span id="j_id0:main:j_id19:j_id50">**The following questions and requirements are needed to continue your on-boarding as an Advocate.** Once you have finished, you will have access to ClientConnect, our system for client and resource management.<br /><br /> 1. Fill in some demographic information<br /> 2. Sign the advocate handbook<br /><br /> If you have any questions, please contact your Program Manager.<br /><br /> Welcome to the team!</span></div><script type="text/javascript">//<![CDATA[
@boxfoot
Copy link
Author

boxfoot commented May 22, 2014

If you review the HTML markup above, you see that extra spaces are added after each <br /> in the ajax response which were not present in the original field value. Each line of the original field value below is at the start of its line, with no leading spaces.

The following questions and requirements are needed to continue your on-boarding. Once you have finished, you will have access to our system for client and resource management.

1. Fill in some demographic information
2. Sign the advocate handbook

If you have any questions, please contact your Program Manager.

Welcome to the team!

(The spaces are irrelevant for HTML but throw off our client-side markdown engine.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment