Opened 4 years ago

Closed 3 years ago

#2078 closed defect (fixed)

Line breaks lost when copying from router logs on /logs

Reported by: zzz Owned by: zzz
Priority: minor Milestone: 0.9.35
Component: apps/console Version: 0.9.32
Keywords: Cc:
Parent Tickets: Sensitive: no


When I copy multiple lines of text from the router logs section on /logs and paste them elsewhere, the line breaks are lost, so all log entries get pasted as one line. We need users to copy router logs from the console over to trac tickets without a lot of extra formatting or cleanup.

This doesn't happen when copying from the 'i2p version and running environment' or 'wrapper logs' sections, or from the event logs page. I don't know if it's always been like that or if some recent change is at fault. I did look at the code and the router log section has been a <ul> for a long time, but perhaps it's possible to influence how text is copied and pasted with CSS? I don't know. I copied from a list on /configreseed and it pasted fine. So some particular CSS issue on /logs?

Tested both on firefox and chrome.

Example 3 separate lines as pasted:

11/21 xx:38:55.529 ↓↓↓ 1 similar message omitted ↓↓↓ 11/21 xx:29:33.995 ↓↓↓ 1 similar message omitted ↓↓↓ 11/21 xx:28:53.342 ↓↓↓ 2 similar messages omitted ↓↓↓


Change History (5)

comment:1 Changed 3 years ago by zzz

Milestone: undecided0.9.34

Please fix for .34

comment:2 Changed 3 years ago by str4d

Fix exists, needs extraction from the UI patchset.

comment:3 Changed 3 years ago by str4d

Status: newaccepted

comment:4 Changed 3 years ago by zzz

Milestone: 0.9.340.9.35
Owner: changed from str4d to zzz

all UI tickets are my problem now

comment:5 Changed 3 years ago by zzz

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.