For PDF output remove the indent from the <p>

Questions about XML that are not covered by the other forums should go here.
avaldivia
Posts: 2
Joined: Thu Jul 22, 2021 12:01 am

For PDF output remove the indent from the <p>

Post by avaldivia » Thu Jul 22, 2021 12:06 am

Hello, I want to remove the indent from the <p> so in the pdf shows the content aligned to the left but I can't seem to find where the indent is.


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="introduction">
<title>Introduction</title>
<shortdesc>With just a little bit of care and preparation, any flower garden can be a vibrantly
colored environment.</shortdesc>
<body>
<p>With just a little bit of care and preparation, any flower garden can be a vibrantly
colored environment. Flowers can be selected for specific blooming seasons, colors and
shapes. Both annual and <xref keyref="perennial" format="dita">perennial</xref>
flower gardens can be planted depending on climate and specific needs.</p>
</body>
</topic>

Can anyone help me please?

julien_lacour
Posts: 203
Joined: Wed Oct 16, 2019 3:47 pm

Re: For PDF output remove the indent from the <p>

Post by julien_lacour » Thu Jul 22, 2021 11:20 am

Hello,

Normally the paragraphs are not indented by default in the DITA Map PDF - based on HTML5 & CSS transformation.
You can try to debug your CSS to see what rules are applied on paragraphs.
You can also send back an image to see what do you mean by "indent".

Regards,
Julien

Post Reply