Hi all,
I´ve created a simple snippet as shown in the figure. It is only a p-style with an image. It is not an ordered list snippet.
When I put this snippet in the topic, it looks fine so far as also shown.
It has this code:
<ol>
<li>Click on <img src="../../4_Images/1_Images_SSW/Symbol_Buttons/Settings_Button_SSW.png" alt="[Settings]" style="width: 20px; height: 20px;" class="Symbol_Buttons" /> to open the <MadCap:variable name="Project_Variables.Window_ApplicationSettings" /> window.</li>
<li>Select your service software style.</li>
<li>
<MadCap:snippetBlock src="../../5_Snippets/1_Snippets_SSW/ClickOn_Ok.flsnp" />
</li>
</ol>
But in the HTML5 output I have this stupid blank at the beginning of the third ordered list line.
Have you ideas to fix it or is it a bug?
Nested snippet in ordered lists - stupid blank.
Nested snippet in ordered lists - stupid blank.
You do not have the required permissions to view the files attached to this post.
Re: Nested snippet in ordered lists - stupid blank.
My guess is that your p style includes a left margin or padding, so it is being indented from the list item (li).Matze wrote:Have you ideas to fix it or is it a bug?
-
- Propeller Head
- Posts: 88
- Joined: Wed May 25, 2016 3:35 pm
Re: Nested snippet in ordered lists - stupid blank.
The Snippet Blocks are known to create interesting formatting when combined with regular text. Just go in and change your code from <MadCap:snippetBlock= to <MadCap:snippetText= and it should play nice with the rest of your text.Matze wrote: <li>
<MadCap:snippetBlock src="../../5_Snippets/1_Snippets_SSW/ClickOn_Ok.flsnp" />
</li>
~Sarah
Technical Writer using and experimenting with Flare version 12.0.5991.
Re: Nested snippet in ordered lists - stupid blank.
Using the snippetBlock should be fine though, as it's inserting a p tag inside a li tag, which is valid HTML.paintedturtle wrote:The Snippet Blocks are known to create interesting formatting when combined with regular text. Just go in and change your code from <MadCap:snippetBlock= to <MadCap:snippetText= and it should play nice with the rest of your text. :)Matze wrote: <li>
<MadCap:snippetBlock src="../../5_Snippets/1_Snippets_SSW/ClickOn_Ok.flsnp" />
</li>
~Sarah
Inserting a snippetText would remove the p tag - which may inadvertently fix the issue, if it was caused by the p tag formatting.
Inserting a snippetBlock should only create interesting formatting if it causes invalid or unexpected HTML; e.g. inserting this snippet as a snippetBlock inside a p tag would create nested p tags, and probably result in strange formatting.
Flare will usually insert the right snippet type, depending on where your cursor is when you insert the snippet.
-
- Senior Propellus Maximus
- Posts: 2632
- Joined: Wed Apr 14, 2010 8:01 am
- Location: Surrey, UK
Re: Nested snippet in ordered lists - stupid blank.
If this is the case (very likely) I suggest you add a complex selector to your stylesheet, to remove any left margins from a <p> tag when it's inside a <li>.Dave Lee wrote:My guess is that your p style includes a left margin or padding, so it is being indented from the list item (li).Matze wrote:Have you ideas to fix it or is it a bug?
Code: Select all
li p
{
margin-left: 0;
}
www.w3schools.com has a very good reference section on how selectors in CSS work, it's well worth bookmarking if your styling just isn't doing what you expect it to.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Re: Nested snippet in ordered lists - stupid blank.
indeed my global p.style has a 10px left margin, thats the distance to the left.
Hmmm, using a snippet.Text instead of snippet.Box sounds nice, but I´ve always edit this in the thml source code by inserting a snippet in the topic right?
Therefore I´ve create a p.SnippetTask child without 10px margin. I guess a nice workaround for my team.
THX
Hmmm, using a snippet.Text instead of snippet.Box sounds nice, but I´ve always edit this in the thml source code by inserting a snippet in the topic right?
Therefore I´ve create a p.SnippetTask child without 10px margin. I guess a nice workaround for my team.
THX
Re: Nested snippet in ordered lists - stupid blank.
An easier way to fix this is by adding CSS so that paragraphs (p) inside list items (li) don't have a margin; e.g.Matze wrote:indeed my global p.style has a 10px left margin, thats the distance to the left.
Hmmm, using a snippet.Text instead of snippet.Box sounds nice, but I´ve always edit this in the thml source code by inserting a snippet in the topic right?
Therefore I´ve create a p.SnippetTask child without 10px margin. I guess a nice workaround for my team.
THX
Code: Select all
li p { margin-left: 0; }
-
- Senior Propellus Maximus
- Posts: 2632
- Joined: Wed Apr 14, 2010 8:01 am
- Location: Surrey, UK
Re: Nested snippet in ordered lists - stupid blank.
I already said that, Dave!Dave Lee wrote:An easier way to fix this is by adding CSS so that paragraphs (p) inside list items (li) don't have a margin; e.g.Matze wrote:indeed my global p.style has a 10px left margin, thats the distance to the left.
Hmmm, using a snippet.Text instead of snippet.Box sounds nice, but I´ve always edit this in the thml source code by inserting a snippet in the topic right?
Therefore I´ve create a p.SnippetTask child without 10px margin. I guess a nice workaround for my team.
THX
Code: Select all
li p { margin-left: 0; }
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx