0

Background

Hi all, i'm developing a diary application where the user adds several short entries (on a couple of lines perhaps) rather than adding entries for an entire day

For layout and look reasons i'd like these entries to be without newlines inside

Question

When pasting a text into an entry and the text which is pasted contains newlines, i'd like to find a way to represent the newlines with a visual character rather than going to the next line. How can i do this in a nice way?

What i've considered so far

One option is to choose a character like this one. Another idea is to use a pipe with a space before and after " | "


Grateful for help with this!

1

2 Answers 2

1

The separating character instead of new line is the same as long as the character is easily recognizable. The pipe is ok if it's well visible in the used font. I think you must use quite thick font for just this one character.

You probably should give options. People are so used to make a new line when they want a new starting point which should be seen easily. So, new lines at will must be available as one of the options.

This is an example of something I consider to be a well visible separator:

enter image description here

The fj can be replaced with record number or identifier letter. This makes references possible in the text. The minus is that also the first line needs some identifier.

There's still one separation possiblity: text color. It doesn't need extra space.

enter image description here

You must test, if it can be used in your system. Or is it already reserved for something else?

2
  • Thank you, i like both the examples that you gave. Probably i will use something like in the first example but the second example is intriguing. And yes, why not give the user the option to choose herself what the character will be?
    – sunyata
    Sep 6, 2018 at 12:17
  • "Or is it already reserved for something else?" -- You mean color? Right now color isn't used for anything else so this could be one option
    – sunyata
    Sep 6, 2018 at 12:18
0

I think your choice is absolutely fine. In software such as LibreOffice Writer, a similar character is used in the formatting marks view for a newline. A pilcrow is usually reserved for new paragraph. In LibreOffice these formatting marks are coloured blue so that they stand out.

Screen shot of LibreOffice Writer formatting marks

Screen shot of LibreOffice Writer formatting marks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.