9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: smiley@zenzebra.mv.com
To: 9fans@9fans.net
Subject: Re: [9fans] line wrapping
Date: Fri, 21 Jan 2011 05:52:15 +0000	[thread overview]
Message-ID: <86aaiu7qi8.fsf@cmarib.ramside> (raw)

(Following up on a thread of the same subject discussed in Feb 2006...)

One other thing that's presently driving me batty is the line wrapping
in wikifs.  When I save a file to wikifs with lines longer than about 70
characters, wikifs tries to fill and word-wrap those paragraphs.
Unfortunately, when these paragraphs contain really long words (like
URLs), it wraps these lines incorrectly.

Here's an example:

--------------------------------SNIP--------------------------------

It would be advisable also to at least read the [list of other Plan 9 documentation | http://plan9.bell-labs.com/wiki/plan9/Documentation/] on the Plan 9 Wiki, including a [list of recommended reading | http://plan9.bell-labs.com/wiki/plan9/Recommended_Readings/index.html] (recommended by someone, I suppose...).

--------------------------------SNIP--------------------------------



When I save that to wikifs, it becomes:

--------------------------------SNIP--------------------------------

It would be advisable also to at least read the [list of other Plan
9 documentation |
http://plan9.bell-labs.com/wiki/plan9/Documentation/] on the Plan 9
Wiki, including a [list of recommended reading |
http://plan9.bell-labs.com/wiki/plan9/Recommended_Readings/index.html] (recommended by someone, I suppose...).

--------------------------------SNIP--------------------------------



If I pass the exact same text to "fmt", however, it becomes:

--------------------------------SNIP--------------------------------

It would be advisable also to at least read the [list of other Plan 9
documentation | http://plan9.bell-labs.com/wiki/plan9/Documentation/]
on the Plan 9 Wiki, including a [list of recommended reading |
http://plan9.bell-labs.com/wiki/plan9/Recommended_Readings/index.html]
(recommended by someone, I suppose...).

--------------------------------SNIP--------------------------------

which is so much prettier.  :)

So, I typed "|fmt" into my tagline and tried pre-fmt'ing all my long
lines, in hopes that wikifs would then leave them alone.  Alas, wikifs
still insists on collecting my nicely wrapped text and mangling it in
creative ways.  (Shouldn't that "(recommended...)" be on a new line?)

I read wikifs(4).  However, it didn't make any mention of word wrapping
its content.  (Which baffled me, at first.)  I'm pretty sure it's wikifs
(not Acme) doing the wrapping, because I checked the files in the "d"
directory and they were word-wrapped.  Of course, it could be the Acme
Wiki "plugin" (proper terminology?) doing the wrapping, but I suspect
it's wikifs.  The long lines appear to remain unwrapped in Acme until
the file is read back in from wikifs.

Is there a way to turn off line wrapping in wikifs?

Any help (or workarounds!) would be greatly appreciated!

(If anyone responds with this information, I'll make sure it gets posted
on the wiki for others to find.  Thanks!)

--
+---------------------------------------------------------------+
|E-Mail: smiley@zenzebra.mv.com             PGP key ID: BC549F8B|
|Fingerprint: 9329 DB4A 30F5 6EDA D2BA  3489 DAB7 555A BC54 9F8B|
+---------------------------------------------------------------+



                 reply	other threads:[~2011-01-21  5:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86aaiu7qi8.fsf@cmarib.ramside \
    --to=smiley@zenzebra.mv.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).