Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#8,136 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
frontend

Hướng nghiên cứu

Tái hiện vấn đề bằng cách mở một tệp .txt được chia sẻ công khai trong trình duyệt đã đăng xuất, sau đó so sánh với cùng tệp đó trong Nextcloud UI. Theo dõi luồng kết xuất của public-share và xác định lý do các dòng dài không được ngắt dòng; hoàn tất khi chế độ xem công khai ngắt dòng văn bản nhất quán với chế độ xem đã đăng nhập.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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) ...
Ngôn ngữ chính
JavaScript
Star
665
Fork
133
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
172

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của nextcloud/text

Tất cả issue của nextcloud/text

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.