Zim

Zim auto replace four spaces with a tab

Bug #1463309 reported by Dylan on 2015-06-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Medium
Unassigned

Bug Description

Zim 0.62 , Ubuntu 15.04 Desktop
I often put several spaces at the beginning of a paragraph. All was fine when I was on Ubuntu 14.04.
Recently, I change to Ubuntu 15.04, and I meet some trouble.
When I put four spaces at the beginning of a paragraph, close and reopen Zim, the spaces will automatically replaced by a tab.
And, if the spaces is less than 4, it won't be replaced.
All my notes have been changed!!!

Zim interpretes these as indenting, and since indenting is rendered by tabs
they may be replaced when you save the note again in zim.

Do you use spaces at the beginning of a text for something else than
indenting ?

Regards,

Jaap

On Tue, Jun 9, 2015 at 10:47 AM, Dylan <email address hidden> wrote:

> Public bug reported:
>
> Zim 0.62 , Ubuntu 15.04 Desktop
> I often put several spaces at the beginning of a paragraph. All was fine
> when I was on Ubuntu 14.04.
> Recently, I change to Ubuntu 15.04, and I meet some trouble.
> When I put four spaces at the beginning of a paragraph, close and reopen
> Zim, the spaces will automatically replaced by a tab.
> And, if the spaces is less than 4, it won't be replaced.
> All my notes have been changed!!!
>
> ** Affects: zim
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to Zim.
> https://bugs.launchpad.net/bugs/1463309
>
> Title:
> Zim auto replace four spaces with a tab
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1463309/+subscriptions
>

Dylan (gapplef) wrote :

Actually, I'm a Chinese user.
In Chinese, 4 spaces are used to indicate the begin of a new paragraph, just like you use the blank line.
A tab is also fine, but in Zim “tab” will indent all lines in the paragraph, that's not what I expected.

HI Dylan,

Ok, now I understand. My thinking is that this should be fixed by the
theming. But that only works in "running text", not in text that consists
of short lists etc.

Do you have an example page for me so I can try out some things?

Regards,

Jaap

On Sun, Jun 14, 2015 at 5:21 AM, Dylan <email address hidden> wrote:

> Actually, I'm a Chinese user.
> In Chinese, 4 spaces are used to indicate the begin of a new paragraph,
> just like you use the blank line.
> A tab is also fine, but in Zim “tab” will indent all lines in the
> paragraph, that's not what I expected.
>
> --
> You received this bug notification because you are subscribed to Zim.
> https://bugs.launchpad.net/bugs/1463309
>
> Title:
> Zim auto replace four spaces with a tab
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/1463309/+subscriptions
>

Dylan (gapplef) wrote :

Hi Jaap,
    Just put 4 space at the begin of each paragraph in an article, maybe more common in printed matters. An example can be find here : < http://movie.douban.com/review/7484700/ >.
    What I need is just don't replace the spaces with tabs, leave the original format alone.

Regards,

Dylan

Don't know how to fix it immediately, but understand this can be an issue for Chinese users. So will need investigation / discussion.

For my information, how is this handled in e.g. wikipedia editing ?

Regards,

Jaap

Changed in zim:
status: New → Confirmed
importance: Undecided → Medium
Dylan (gapplef) wrote :

In Chinese Wikipedia, they use blank line to indicate new paragraph.
e.g. < https://zh.wikipedia.org/wiki/%E7%BB%B4%E5%9F%BA%E7%99%BE%E7%A7%91 >

In Baidu Baike, one website similar to Wikipedia in China, they auto indent some space in the first line of each paragraph.
e.g. < http://baike.baidu.com/view/1245.htm >

Regards,

Dylan

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.