I’m using SS2 to make PDFs that have bullets in th...
# suitescript
j
I’m using SS2 to make PDFs that have bullets in the HTML. I can’t seem to get the extra space to go away when starting a nested bullet list. Any suggestions?
Here is my XML for testing
Copy code
<ol>
	<li>Bullet 1
		<ol style="list-style-type: upper-alpha;">
			<li>Bullet A</li>
			<li>Bullet B</li>
		</ol>
	</li>
	<li>Bullet 2</li>
	<li>Bullet 3</li>
	<li>Bullet 4
		<ol style="list-style-type: upper-alpha;">
			<li>Bullet A</li>
			<li>Bullet B
				<ol style="list-style-type: lower-roman;">
					<li>bullet i</li>>
					<li>bullet ii</li>>
					<li>bullet iii</li>
				</ol>
			</li>
			<li>Bullet C</li>
		</ol>
	</li>
	<li>Bullet 5</li>
</ol>
using
context.response.renderPdf({xmlString: xml});
result, highlighting the spaces I want to get rid of
Screenshot 2025-02-12 at 4.15.44 PM.png
e
Maybe
ol
has some vertical
margin
or
padding
in the default styling
j
I’ve tried setting all <ol> and <li> margins and paddings to 0, doesn’t get rid of the gaps.
🤔 1
c
Iirc, you can render it as HTML and maybe get mire insight into what CSS you might need... ?
i.e. render as HTML and use the Chrome debugger...
j
I actually got an answer back from BFO! It’s because like with <td> BFO inserts a <p> tag for …. reasons. If I put my own p styling I can get rid of the gap.
💯 3
c
I like how it just throws in a
<p>
tag. lol