# \<br\> and \<p\> in externally loaded txt

**URL:** <https://forum.kirupa.com/t/br-and-p-in-externally-loaded-txt/182501>\
**Category:** flash\
**Created:** [March 18, 2006, 10:01pm UTC](https://forum.kirupa.com/t/br-and-p-in-externally-loaded-txt/182501 "2006-03-18T22:01:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![esa1234](https://avatars.discourse-cdn.com/v4/letter/e/a183cd/32.png) [@esa1234](https://forum.kirupa.com/u/esa1234)\
**Post date:** [March 18, 2006, 10:01pm UTC](https://forum.kirupa.com/t/br-and-p-in-externally-loaded-txt/182501/1 "2006-03-18T22:01:28Z")

</div>

I’ve read many threads on this subject, but haven’t really found a difinitive answer to the problem. I’m trying to externally load a long text file with numerous lines of text. Dreamweaver, annoyingly, adds \<p\> tags whenever you edit this text, and therefore flash interprets \<p\> tags or spaces as a double space. The condensewhite function appears to be what people say to use, but I’m not seeing how. Could someone maybe look at my code and enlighten me?? How do I actually get actionscript to ignore the \<p\>'s and extra spaces? Any way I code condensewhite, it doesn’t do a thing.

```auto
var styles = new TextField.StyleSheet();
styles.load("events.css");
events.html = true;
events.styleSheet = styles;
var lv:LoadVars = new LoadVars();

lv.onData = function(content) {
  events.text = content;
}

lv.load("events.html");

```
