Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Public share of a .txt file does not word-wrap, even if word-wrap does work when viewing files from Nextcloud UI

Aperta
#8,136 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

Riproduci il problema aprendo un file .txt condiviso pubblicamente in un browser con la sessione disconnessa, quindi confrontalo con lo stesso file nella Nextcloud UI. Traccia il percorso di rendering della condivisione pubblica e identifica perché le righe lunghe non vanno a capo; il lavoro è completato quando la vista pubblica manda a capo il testo in modo coerente con la vista autenticata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug feature: sharing

Describe the bug
Public share of a .txt file does not follow how the text looks when logged in. When logged in the .txt is word-wrapped and easy to read. When sharing the same file publicly however, lines are not wrapped and the text becomes impossible to read without copy-pasting. This behaviour makes sharing simple .txt files for public purposes practically unusable.

To Reproduce
Steps to reproduce the behavior:

  1. Create or upload a .txt file with characters as rows
  2. Create public link to the .txt file
  3. Open the link on a browser not logged in to the nextcloud server
  4. See that text is not wrapped

Expected behavior
Text looks the same whether you view it within Nextcloud interface or the public share

Server details:

  • Nextcloud version: 31.0.10

Client details:

  • OS: macOS
  • Browser: Brave
  • Browser version:1.85.118
  • Device: desktop
Logs
Nextcloud log (data/nextcloud.log)
Insert your Nextcloud log here
Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
Lingua principale
JavaScript
Stelle
665
Fork
133
Merge medio
1g 17h
PR unite (30g)
172

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nextcloud/text

Tutte le issue di nextcloud/text

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.