Skip to content

Commit

Permalink
Fix rule about space between number and unit
Browse files Browse the repository at this point in the history
  • Loading branch information
mzlogin committed Mar 23, 2018
1 parent ea3e93b commit 6fd6c14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ Other languages:
## Table of Contents

<!-- vim-markdown-toc GFM -->

* [Spacing](#spacing)
* [Place one space before/after English words](#place-one-space-beforeafter-english-words)
* [Place one space before/after numbers](#place-one-space-beforeafter-numbers)
* [Place one space between numbers and units](#place-one-space-between-numbers-and-units)
* [No space between numbers and units](#no-space-between-numbers-and-units)
* [No additional spaces before/after punctuation in fullwidth form](#no-additional-spaces-beforeafter-punctuation-in-fullwidth-form)
* [`-ms-text-autospace` to the rescue?](#-ms-text-autospace-to-the-rescue)
* [Punctuation](#punctuation)
Expand Down Expand Up @@ -73,17 +74,17 @@ Bad:
> 今天出去买菜花了5000元。
### Place one space between numbers and units
### No space between numbers and units

Good:

> 我家的光纤入户宽带有 10 Gbps,SSD 一共有 20 TB
> 我家的光纤入户宽带有 10Gbps,SSD 一共有 10TB
Bad:

> 我家的光纤入户宽带有 10Gbps,SSD 一共有 10TB
> 我家的光纤入户宽带有 10 Gbps,SSD 一共有 20 TB
Exceptions: There should not be any spacing between numbers and degrees/percentages.
Besides, there should not be any spacing between numbers and degrees/percentages.

Good:

Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ Other languages:
## 目录

<!-- vim-markdown-toc GFM -->

* [空格](#空格)
* [中英文之间需要增加空格](#中英文之间需要增加空格)
* [中文与数字之间需要增加空格](#中文与数字之间需要增加空格)
* [数字与单位之间需要增加空格](#数字与单位之间需要增加空格)
* [数字与单位之间无需增加空格](#数字与单位之间无需增加空格)
* [全角标点与其他字符之间不加空格](#全角标点与其他字符之间不加空格)
* [`-ms-text-autospace` to the rescue?](#-ms-text-autospace-to-the-rescue)
* [标点符号](#标点符号)
Expand Down Expand Up @@ -74,17 +75,17 @@ Other languages:
> 今天出去买菜花了5000元。
### 数字与单位之间需要增加空格
### 数字与单位之间无需增加空格

正确:

> 我家的光纤入户宽带有 10 Gbps,SSD 一共有 20 TB
> 我家的光纤入户宽带有 10Gbps,SSD 一共有 10TB
错误:

> 我家的光纤入户宽带有 10Gbps,SSD 一共有 10TB
> 我家的光纤入户宽带有 10 Gbps,SSD 一共有 20 TB
例外:度/百分比与数字之间不需要增加空格:
另外,度/百分比与数字之间不需要增加空格:

正确:

Expand Down

0 comments on commit 6fd6c14

Please sign in to comment.