I have a form with an unordered list. Each of the LI tags have an address in it. The address is broken to several lines, but Flex is putting a dot at the front of each line instead of once for each LI line.
It looks like this:
<dot>Office 1
<dot>street address
<dot>phone
I want it to look like this:
<dot>Office 1
street address
phone
The question is how do I get rid of the extra dots (<ul><li> automatically generated by HTML).
The Flex context is a text object with the htmlText property set to a HTML string.
| <mx:Text id="noticeCompList" | |||
| htmlText="{txt.noticeListText}" | |||
| width="100%" | |||
| leading=".5" | |||
| paddingRight="25" | |||
| tabIndex="210"/> |
"txt.noticeListText" is set to this:
| private const _noticeList:String = | |||||
| "<ul> " + | |||||
| "<li>"+ | |||||
| "Department of Human Services, EEO/AA Office<br />" + | |||||
| "401 S. Clinton Street, 7th Floor<br />" + | |||||
| "Chicago, IL 60607<br /></li>"+ | |||||
| "<li>" + | |||||
| "USDA, Director, Department of Adjudication<br /> " + | |||||
| "1400 Independence Avenue, SW<br />" + | |||||
| "Washington, D.C. 20250-9410<br />" + | |||||
| "or call (866) 632-9992 (Voice)<br />" + | |||||
| "or (800) 877-8339 (Hearing impared/speech disabilities)<br />" + | |||||
| "or (800) 845-6136 (Spanish)<br /></li>"+ | |||||
| "<li>" + | |||||
| "HHS Director, Office for Civil Rights, Room 506-F, HHS Building<br />" + | |||||
| "200 Independence Avenue, SW<br />" + | |||||
| "Washington, D.C. 20201<br />" + | |||||
| "or call (202) 619-0403 (Voice)<br />" + | |||||
| "or (202) 619-3257 (Hearing impared/speech disabilities)</li>" + | |||||
| "</ul>"; | |||||
| public function get noticeList():String | |||||
| { | return _noticeList; | } |
Each of the lines that appear caused by the break tag start with a dot. Only the first line should have the dot. That is what happens in the Java version of the program and what should happen in Flex.
[any way to post code without it becoming a table as seen above?]
North America
Europe, Middle East and Africa
Asia Pacific