Skip to content
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

Improve display of plain text files in HTML editor #5196

Closed
reckart opened this issue Dec 1, 2024 · 0 comments
Closed

Improve display of plain text files in HTML editor #5196

reckart opened this issue Dec 1, 2024 · 0 comments

Comments

@reckart
Copy link
Member

reckart commented Dec 1, 2024

Is your feature request related to a problem? Please describe.
The HTML editor introduces paragraph boundaries when there are multiple consecutive line breaks in the text file, but currently that's it. Simple line breaks are not considered. Also, paragraphs can become quite long which may cause the viewport tracker to load a great many of annotations.

Describe the solution you'd like
Introduce spans at the line-level to help the viewport tracker.
Set the rendering to whitespace: pre-line so that simple line breaks are considered.

Describe alternatives you've considered
A switch to turn handling of simple line breaks on and off (might still do that later).

@reckart reckart added this to the 35.0 milestone Dec 1, 2024
@reckart reckart self-assigned this Dec 1, 2024
@reckart reckart added this to Kanban Dec 1, 2024
@github-project-automation github-project-automation bot moved this to 🔖 To do in Kanban Dec 1, 2024
reckart added a commit that referenced this issue Dec 1, 2024
- Use pre-line whitespace handling when displaying a plain text file in the HTML edior
- Assist the viewport tracker by introducing span annotations at the line level
reckart added a commit that referenced this issue Dec 1, 2024
…display-of-plain-text-files-in-HTML-editor

#5196  - Improve display of plain text files in HTML editor
@reckart reckart closed this as completed Dec 1, 2024
@github-project-automation github-project-automation bot moved this from 🔖 To do to 🍹 Done in Kanban Dec 1, 2024
reckart added a commit that referenced this issue Dec 20, 2024
…-JSON

* main: (106 commits)
  No issue: Cancel running builds when a new one on the same branch is triggered
  No issue: Try deploying Maven artifacts
  No issue: Try deploying Maven artifacts
  No issue: Try deploying Maven artifacts
  No issue: Try deploying Maven artifacts
  #5203 - Disable export of data for annotators by default
  #5201 - Users should be able to change their own password by default
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-35.0-beta-2
  Issue #5078: Upgrade dependencies
  Issue #5078: Upgrade dependencies
  Issue #5159: Improve HTML render performance
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-34.5
  Issue #5078: Upgrade dependencies
  Issue #5078: Upgrade dependencies
  Issue #5078: Upgrade dependencies
  Issue #5078: Upgrade dependencies
  #5196  - Improve display of plain text files in HTML editor
  #5194 - Preferences when opening document in HTML editor
  ...
reckart added a commit that referenced this issue Dec 20, 2024
…causes-problems-in-search

* main: (106 commits)
  No issue: Cancel running builds when a new one on the same branch is triggered
  No issue: Try deploying Maven artifacts
  No issue: Try deploying Maven artifacts
  No issue: Try deploying Maven artifacts
  No issue: Try deploying Maven artifacts
  #5203 - Disable export of data for annotators by default
  #5201 - Users should be able to change their own password by default
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-35.0-beta-2
  Issue #5078: Upgrade dependencies
  Issue #5078: Upgrade dependencies
  Issue #5159: Improve HTML render performance
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-34.5
  Issue #5078: Upgrade dependencies
  Issue #5078: Upgrade dependencies
  Issue #5078: Upgrade dependencies
  Issue #5078: Upgrade dependencies
  #5196  - Improve display of plain text files in HTML editor
  #5194 - Preferences when opening document in HTML editor
  ...

% Conflicts:
%	inception/inception-pdf-editor/pom.xml
%	inception/inception-ui-project/src/main/java/de/tudarmstadt/ukp/clarin/webanno/ui/project/layers/ProjectLayersPanel.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🍹 Done
Development

No branches or pull requests

1 participant