osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.72k stars 1.03k forks source link

Line breaks ignored when showing favorite place details #18655

Open MiMoHo opened 12 months ago

MiMoHo commented 12 months ago

Description

Although one can enter a description for favorite places with line breaks, line breaks are missing when viewing the details of the favorite place. To figure out where line breaks are, one has to change back into editing mode.

Steps to reproduce

Create a favorite place. Enter text with several line breaks in the description field -> save. View your favorite place by swiping up to see the details.

Actual result

The text appears without line breaks. This makes it hard to read and may even lead to confusion.

Expected result

The text should show with line breaks as entered to make it better readable and avoid confusion.

Your Environment (required)

OsmAnd Version: 4.5.10
Android/iOS version: 13
Device model: Sony Xperia 5
Crash-Logs: no
zipav commented 11 months ago

OsmAnd Nightly 4.6.0#1173m, released: 2023-12-07

Reproduced on the latest build of OsmAnd Nightly.

01 02
vshcherb commented 11 months ago

Description supports html so if you add <br> it will have break line, probably what we can do. To do: understand description doesn't have any html formatting and display as plain text (or we can replace '\n' with
).

Workaround: Read full gives correct representation.