jeziellago / compose-markdown

Markdown Text for Android Jetpack Compose 📋.
MIT License
567 stars 47 forks source link

Remove extra line spacing #99

Closed dinhthaidaica closed 2 months ago

dinhthaidaica commented 3 months ago

Closes #98

The issue was caused by extra spaces added to each line by applyLineSpacing. When setLineSpacing was called in a TextView, applyLineSpacing added unnecessary extra spacing to every line. The code already calls applyFontSize(style) and applyLineHeight(style), which together set the appropriate spacing between lines of text. Therefore, applyLineSpacing is redundant.

Additionally, the custom font sample was modified to demonstrate the fix.