gsantner / gsantner/markor

ignore final newline (for todo.txt at least)

Open
#2,598 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
6.1k
Forks
537
Avg merge
1d 18h
Merged PRs (30d)
4

Description

⚠️ This issue respects the following points: ⚠️
  • This is a enhancement/feature request. Not a bug or question.
  • The topic is not already reported at Issues. (I've searched it).
  • Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • The wanted feature/enhancement is not present in the latest development version (git master). (Please download and try the test version of Markor, named Marder. Don't worry; Markor and Marder appear as completely separate applications. You can install both side-by-side, and Markor's settings are not touched. If your desired feature is present, you don't need to open this issue. The change will be part of the next Markor update.)
Description

in unix-like OSes, text files contain a final newline.
for example, topydo edits todo.txt files and inserts a final newline. but then markor shows an empty line (dateless) in the todo.txt file, which is a bit cumbersome since we have to remove it then add a new line so the current date is inserted.
it would be good if at least for todo.txt, a final newline in the file didn't show in the todo list.
if possible, it would be even better for other formats, and also if markor itself added a final newline to files, just like is done for text file on unix-like OSes.

Information

Android version:
Device:
App Version:

Source

F-Droid

Format / File type

todo.txt

Additional info / Log
-

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how Markor renders todo.txt files and handles a final newline. Verify the behavior with a todo.txt containing a trailing newline, then confirm that the trailing newline no longer appears as an empty todo entry while ordinary new lines remain visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.