# Spaces appearing before \<p\> tags in .htmlText

**URL:** <https://forum.kirupa.com/t/spaces-appearing-before-p-tags-in-htmltext/275328>\
**Category:** flash\
**Created:** [November 12, 2008, 3:30pm UTC](https://forum.kirupa.com/t/spaces-appearing-before-p-tags-in-htmltext/275328 "2008-11-12T15:30:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thatguythatsme](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@thatguythatsme](https://forum.kirupa.com/u/thatguythatsme)\
**Post date:** [November 12, 2008, 3:30pm UTC](https://forum.kirupa.com/t/spaces-appearing-before-p-tags-in-htmltext/275328/1 "2008-11-12T15:30:05Z")

</div>

I’m using the .htmlText function in ActionScript to format some text from an xml file however I seem to be having some trubles with 2 spaces being put before the start of each \<p\> tag. I’ve googled it but so far haven’t come up with anything, I’ve used html in this manor before and never seen this.

I end up with paragraphs looking like this

So every line is starts indented.

Cheers

David
