sblendorio / petscii-bbs

A Java framework for building highly customizable PETSCII-enabled BBS, accessible from Commodore 64/128
Mozilla Public License 2.0
121 stars 16 forks source link

Wordpress proxy wall of text #38

Open eightbitswide opened 4 years ago

eightbitswide commented 4 years ago

Is there a way to get the Wordpress proxy to listen to paragraph breaks or
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)

sblendorio commented 4 years ago

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

eightbitswide commented 4 years ago

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

sblendorio commented 4 years ago

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

eightbitswide commented 4 years ago

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 < notifications@github.com> 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 commented 4 years ago

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