8000 Custom cache - description does not follow editor formating · Issue #16868 · cgeo/cgeo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Custom cache - description does not follow editor formating #16868

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
andrixnet opened this issue Apr 20, 2025 · 0 comments
Open

Custom cache - description does not follow editor formating #16868

andrixnet opened this issue Apr 20, 2025 · 0 comments

Comments

@andrixnet
Copy link
andrixnet commented Apr 20, 2025

I was just testing how to create a custom cache in c:geo.

Steps performed:

  • long tap -> create custom cache
  • set a title.
  • on the cache page, I edit description. I am presented with a textarea like field. I write some text for testing, including several NEWLINE (ie ENTER key).

Image

After I submit this dialog, I see the description without anything resembling the simple formatting I set in the editor.

Image

Retrying to edit the description I see the text with newlines as I entered it originally (also exported to GPX as such), but displaying is still the same.

The behaviour is similar to displaying HTML content and what I entered in that textarea was plain text, hence the spaces and newlines are considered as a single space.

This is with "description style" = default.

The only way to see what I entered how I entered it is to set "description style" = HTML source.

I believe there is more to it that display style.
On a smartphone screen and keyboard it is really tedious to type HTML code. While in the field, it would be downright impractical.
Also, "description style" is a control under "Advanced". So user friendly and intuitive don't qualify.

For user friendly and intuitive way I would recommend something as follows:

  • give the user a simple textarea; this edits text content as simplified from existing HTML, if exists.
  • submitted text is transformed into a basic HTML with like <br> and &nbsp; to ensure proper display (default style)
  • give the user a way to switch between editing the description in a simple way and editing HTML source. (the advanced feature)
  • the "description style" options under "advanced" remain, they have their respective uses.

Samsung Galaxy A20e; Android 11
c:geo 2025-04-02

(Edited by @moving-bits to preserve HTML formatting for <br> and &nbsp;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0