Skip to main content

When I pull down an example line in the body via API I get something like this:

\n<p class=\"no-margin\"></p>\n<p class=\"no-margin\"><b>Can I add in other activities?</b></p>\n<p class=\"no-margin\">Not at this time. If this is a feature you would like, please send us a message.</p>

When I push that back up, it adds a new line to below the bolded text. This is also happening above lists as well, but only when it’s below a <p> class.

The output looks like this:

<b>Can I add in other activities?<b/>

Not at this time. If this is a feature you would like, please send us a message.

Where the intended output should be

<b>Can I add in other activities?</b>
Not at this time. If this is a feature you would like, please send us a message.

Is this a bug? Is there a way around this?

Hey ​@Cody Iddings! Emily here from Support Engineering at Intercom 👋🏼

I just tested this myself and upon testing I could not replicate the same issue you are experiencing. What version of the API are you testing this with? Could you try using the latest version?

I used the example body you gave in your message:


Then the output of the article was as follows:


There is no gaps in between the sentences - expected behaviour. 

Maybe I am understanding you incorrectly? If so, could you give more clear instructions so I can replicate your issue on my side? Thanks!


Hi Emily, I wasn’t designating a version, and now it’s working as expected when I use 2.11 of the API. Thank you!


Glad to hear ​@Cody Iddings! 🙌🏼


Actually ​@Emilygav  now the spaces are getting stripped above the Heading Tags. Any recommendations to ensure empty spaces don’t get stripped by the API?


Hey ​@Cody Iddings 👋 

Are you only seeing this behavior above headline tags?  Can you send me a code example? 
 

 


Reply