web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Space between lines HT...
Power Apps
Answered

Space between lines HTML code in PowerApps

(0) ShareShare
ReportReport
Posted on by 222

Hello guys. I am developing a HTML code to create a PDF file. I already have all necessary to do it with Flow.

My question is: How do I reduce the space between lines HTML code? The "<body>" is in Flow working with concat function

Here is the HTML control and the HTML code that I want to reduce the space.

 

JoaoN_0-1615361665381.png

JoaoN_1-1615361834626.png

 

 

Categories:
  • RusselThomas Profile Picture
    4,014 on at

    Hi @JoaoN ,

    What happens if you put all lines in one paragraph, instead of having a paragraph per line?

    ie: have an opening <p> tag at the beginning, and a closing </p> tag at the end - none in between.

    "<p>Contratante: .....
    .....
    .....
    ..... </p>"

    Make sense?

     

    Kind regards,

    RT 

  • JoaoN Profile Picture
    222 on at

    Hi @RusselThomas 
    When I do what you suggest, all "labels" are in the same line.
    Now I did a test on mobile, and I do not know why but the flow do not trigger an action, just work when using PC.

  • Verified answer
    RusselThomas Profile Picture
    4,014 on at

    Hi @JoaoN 

    Try adding <br> at the end of each line?

    Kind regards,

    RT

  • JoaoN Profile Picture
    222 on at

    @RusselThomasThank you so much!
    I am new at this point and I imagine how easy it would be to who is an expert on this ahaha
    Thank you again

  • RusselThomas Profile Picture
    4,014 on at

    Hi @JoaoN ,

    Glad to hear it worked 🙂

    Don't feel bad, learning Power FX is one thing, but HTML is equally it's own little world of code - I sometimes find it's easier to get my HTML structure done using a free online HTML editor outside of PowerApps, then once it looks the way I want it, copy/paste the HTML code back into PowerApps and add my variables and expressions to it.  Especially with Power Automate and HTML emails, I do this a LOT.

    Kind regards,

    RT

  • JoaoN Profile Picture
    222 on at

    @RusselThomasNice tip! I will start doing this! Thanks again!
    Now I am having another trouble. On browser the Flow triggers like I want, but from mobile app does not. I post this issue, but no solution yet.

  • automaton Profile Picture
    69 on at

    Some good tips in here, but I was also facing issues once I'd wrapped the block of text in a <p> tag and some text within a <font></font> tag and added a CSS style to adjust the line height to try and make the gap even smaller.

     

    I.e. <p><font style='font-size:20px; line-height:90%'>Some multiline text goes here</font></p>

     

    I found that the additional line-height in this in style wasn't being taken into account by the Power Apps html control parser. To get this to work I found I could remove the paragraph padding around the top and bottom of the block of text and control the line height precisely by removing the <p> in favour of a <div> and adding the line-height style to that.

     

    i.e. <div style='line-height:90%'><font face='Calibri' style="font-size:20px;line-height:50%'>

     

    Thought this may be useful for others having the similar issues.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard