nextcloud / nextcloud/ios

Text viewer broken for longer sentences

Open
#1,674 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

Steps to reproduce
  1. Create a text file with a long sentence in one line. (Like in image 1)
  2. Open it in the App
  3. After a few lines, the rest of the sentence is jammed into one line.
Expected behaviour

Is is expected that the long sentence is split into several lines just like it is done for the first 6 lines.

Actual behaviour

After the 6th line, the splitting stops and the remainder of the sentence is just one line with horizontal scrolling.

Screenshots

This image shows the sentence in a normal text editor. Please note the line numbers on the left
1

This is the same sentence in the App.
2

If I scroll to the side, you can see that the enormous length of the last line of every sentence:
2-2
4

Reasoning or why should it be changed/implemented?

This has been correct in the past (1 or 2 years ago), but I cannot say when exactly this bug happend.

Contributor guide

Open the contributing guide

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 reproducing the issue in the iOS App with a text file containing a long single-line sentence, then trace the text viewer entry point responsible for wrapping after the sixth line. Done means the remaining sentence continues wrapping within the viewer instead of requiring horizontal scrolling.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.