Skip to content

Issues with whitespace in typing-session #86

@lordnik22

Description

@lordnik22

More often than not there are some strange whitespace issues.

Because of fill-region there are annoying whitespace which is preserved (notice the space at the beginning of each line):

 Zweiter Theil Das Kind mit dem Spiegel Auf den glückseligen Inseln
 Von den Mitleidigen Von den Priestern Von den Tugendhaften Vom
 Gesindel Von den Taranteln Von den berühmten Weisen Das Nachtlied Das

other errorprone sample:

***

  ####################################################################

                     Anmerkungen zur Transkription

    Der vorliegende Text wurde anhand der 1868 erschienenen Ausgabe
    der Zeitschrift so weit wie möglich originalgetreu wiedergegeben.

other example

"See now? Now do you understand?"

       *       *       *       *       *

From the remains of David a metal wheel rolled. Relays, glinting
metal. Parts, wiring. One of the Russians kicked at the heap of
remains. Parts popped out, rolling away, wheels and springs and rods.
A plastic section fell in, half charred. Hendricks bent shakily down.

Conclusion: fill-region is annoying.

There should be a strategy to normalize text before inserting it into the speed-type-session (initializing and add-word-fn). Also subject to #50

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions