Skip to main content
Participant
April 20, 2010
Question

Can't firure out how to make a paragraph not indent

  • April 20, 2010
  • 1 reply
  • 588 views

Hi, here's my problem:

My text always has an indentation. How do I make a paragraph start without an indentation.

Here's a sample of my code:

<![CDATA[<flow:TextFlow xmlns:flow='http://ns.adobe.com/textLayout/2008' fontColor='#9a9a9a'  fontFamily='dinBold'  paddingTop='4' paddingLeft='4'>
                <flow:p fontSize='14' textIndent='0' paragraphIndent='0' paddingTop='4'>
                <flow:span fontSize='15' >Juan Atkins<br/></flow:span>
                <flow:span fontSize='12'>Pioneer Detroit Techno<br/></flow:span>
                <flow:span fontSize='10'>Detroit, Mi<br/><br/></flow:span>
                A major electronic music pioneer from Detroit, ...only as imports.<br/>

               </flow:p>

By the way, even with the PDF, there's simply not enough examples to  show how to format text.

If there were I'd probably figure out how  to this correctly. For instance how do img tags work? out of the box? I  can't seem to get it

to work correctly either.

Thanks for your time,
Patrick

This topic has been closed for replies.

1 reply

Adobe Employee
April 20, 2010

I think what you're seeing is the effect of the tabs in the paragraph. I tried removing the tabs between the spans, and that removed the indentation.

April 20, 2010

What you're seeing is not indentation but spaces getting inserted between your spans. Since we allow text content in a paragraph outside of a span on import - for example this:

<flow:p>some text</flow:p>

gets normalized to this:

<p><span>some text</span></p>

We're looking at the text in between your spans and adding more spans than you intend (collapsing the whitespace as we go, since that's the default behavior)

so this:

<flow:p>

   <flow:span fontsize="14">some text</span>

</flow:p>

gets normalized to this (and the span with the space at the beginning of the line looks like an indent):

<p><span> </span><span fontsize="14">some text</span><span> </span><flow:p>

What you'll need to do is eliminate the spaces between spans in your markup:

<flow:p fontSize='14' textIndent='0' paragraphIndent='0' paddingTop='4'><flow:span fontSize='15' >Juan Atkins<br/></flow:span><flow:span fontSize='12'>Pioneer Detroit Techno<br/></flow:span><flow:span fontSize='10'>Detroit, Mi<br/><br/></flow:span>A major electronic music pioneer from Detroit, ...only as imports.<br/></flow:p>

Participant
April 20, 2010

hi:

Looks like this got chewed up by the form, is there a way you can

sednd it and preserver the markup?

Patrick