petscii-bbs icon indicating copy to clipboard operation
petscii-bbs copied to clipboard

Wordpress proxy wall of text

Open eightbitswide opened this issue 4 years ago • 5 comments

Is there a way to get the Wordpress proxy to listen to paragraph breaks or <BR> commands when displaying texts so that paragraphs with breaks show up without the entire text becoming a wall of text?

I've tried pulling BR| from this line without success: .replaceAll("(?is)^[\s\n\r]+|^\s*(</?(br|div|figure|iframe|img|p|h[0-9])[^>]>\s)+", EMPTY)

eightbitswide avatar Apr 27 '20 23:04 eightbitswide

Please link here the page with that problem, I will try to get on it

sblendorio avatar Apr 28 '20 07:04 sblendorio

https://github.com/sblendorio/petscii-bbs/blob/master/src/main/java/eu/sblendorio/bbs/tenants/WordpressProxy.java

eightbitswide avatar Apr 28 '20 10:04 eightbitswide

I meant the wordpress post in the site that has wall of text :)

sblendorio avatar Apr 28 '20 12:04 sblendorio

Ah, misunderstood. Hackaday is a good example. My own BBS News is also running on Wordpress. Both of them create walls of text inside the BBS.

www.hackaday.com, and www.c64.xyz -- Edit: Both of these are linked inside my own BBS @ bbs.c64.xyz port 6400

Jeff

On Tue, Apr 28, 2020 at 8:31 AM Francesco Sblendorio < [email protected]> wrote:

I meant the wordpress post in the site that has wall of text :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sblendorio/petscii-bbs/issues/38#issuecomment-620575312, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJB3EWYBXWNMPD6LB5WHSBLRO3EAXANCNFSM4MSKY6WA .

eightbitswide avatar Apr 28 '20 18:04 eightbitswide

Made the following changes to WordpressProxy.java (see remarks on 3 lines) Solves the problem. No more wall of text.

Screenshot from 2020-04-30 14-06-14

eightbitswide avatar Apr 30 '20 18:04 eightbitswide