Jump to content
Server Maintenance This Week. ×

Trying to add linefeed to HTML template, rather I am loosing linefeed


RodM

This topic is 3505 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi...

 

For instance I have a $var
  which is a text field that i've  added items with line feds   ( FM Paragraph Icon we use)

 

So the layout format ..image might look like

 

item1= $10

itme2= $11

item3= $12

 

 

Then I do a substitute command of  $var    ..into a $HTML_template var

This is my way of creating a  .. Invoice Form

 

When I do substitute.. i loose the  line fed  and my field looks like

 

item1= $10item2= $11item3= $12

 

I've tried doing a substitute  Paragraph return for a <B>  or a html line break but only to cause text to be  Bold  

 

 

Somewhere I think.. not being a html person... spaces and linefeds are auto removed?

 

Do i make sense?

Any ideas?

 

 

TIA   rod

 

 

 

Link to comment
Share on other sites

I am guessing.. its not a FM problem now..and i should be asking HTML forum... if i know of one?

Here is the HTML code results of the subst...

When i stick code in a new htlm page in Dreamweaver... and preview the is no line break

 

 

<div style="POSITION:absolute;TEXT-ALIGN:left;WIDTH:264px;FONT-FAMILY:Verdana;HEIGHT:89px;COLOR:#222222;FONT-SIZE:10px;OVERFLOW:hidden;TOP:445px;LEFT:20px;border-top-width:thin;border-left-width:thin;border-right-width:thin;border-bottom-width:thin">Special services  $25<b>Books                $75<b>Total =              $100<b></b></b></b></div>

Link to comment
Share on other sites

<div style="POSITION:absolute;TEXT-ALIGN:left;WIDTH:264px;FONT-FAMILY:Verdana;HEIGHT:89px;COLOR:#222222;FONT-SIZE:10px;OVERFLOW:hidden;TOP:445px;LEFT:20px;border-top-width:thin;border-left-width:thin;border-right-width:thin;border-bottom-width:thin">Special services  $25<b>Books                $75<b>Total =              $100<b></b></b></b></div>

 

Let me repeat and emphasize: it's

 

<br>

 

, not <b>

 

– and you don't need </br>

 

if i know of one?

 

Rod, I don't know the answer to that question  :laugh:  – but using Google any old search engine would be a start … or look here:

 

http://www.w3schools.com/tags/tag_br.asp

<div style="POSITION:absolute;TEXT-ALIGN:left;WIDTH:264px;FONT-FAMILY:Verdana;HEIGHT:89px;COLOR:#222222;FONT-SIZE:10px;OVERFLOW:hidden;TOP:445px;LEFT:20px;border-top-width:thin;border-left-width:thin;border-right-width:thin;border-bottom-width:thin">Special services  $25<b>Books                $75<b>Total =              $100<b></b></b></b></div>

%2

Link to comment
Share on other sites

gosh I am so blind... stupid of me... 
i did not see the R...  in <BR> your  first reply.. and you were clear..

thanks again

I will try this

Link to comment
Share on other sites

This topic is 3505 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.