From a94e7cba1421ca304f685e21def320cf57bd9465 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Wed, 7 Mar 2018 12:45:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=BA=E5=B7=A5=E4=BF=AE=E8=AE=A2?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=BF=BB=E8=AF=91=20fix:=20=E6=8B=86?= =?UTF-8?q?=E8=A7=A3=20tr=20fix:=20=E7=89=B9=E6=AE=8A=E6=8B=86=E8=A7=A3=20?= =?UTF-8?q?back=20to=20top?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/content/guide/styleguide.md | 1 + aio/content/guide/template-syntax.md | 2 +- aio/tools/translator/bin/translate-one.ts | 2 +- aio/tools/translator/utils.spec.ts | 12 ++++++++++++ aio/tools/translator/utils.ts | 5 +++++ 5 files changed, 20 insertions(+), 2 deletions(-) diff --git a/aio/content/guide/styleguide.md b/aio/content/guide/styleguide.md index 205b7b118d..7babc9eac4 100644 --- a/aio/content/guide/styleguide.md +++ b/aio/content/guide/styleguide.md @@ -4662,4 +4662,5 @@ Useful tools and tips for Angular. Back to top + 回到顶部 diff --git a/aio/content/guide/template-syntax.md b/aio/content/guide/template-syntax.md index c20537bdac..172a7ec389 100644 --- a/aio/content/guide/template-syntax.md +++ b/aio/content/guide/template-syntax.md @@ -1520,7 +1520,7 @@ Here's how the table renders: Six - + 六列 diff --git a/aio/tools/translator/bin/translate-one.ts b/aio/tools/translator/bin/translate-one.ts index ee6b2252d4..a8ac6b1e82 100644 --- a/aio/tools/translator/bin/translate-one.ts +++ b/aio/tools/translator/bin/translate-one.ts @@ -3,5 +3,5 @@ import { dirs } from '../dirs'; import { translateFile } from '../translate'; -const filename = 'guide/router.md'; +const filename = 'guide/template-syntax.md'; translateFile(__dirname + '/../../../../../content-en/' + filename, dirs.content + filename); diff --git a/aio/tools/translator/utils.spec.ts b/aio/tools/translator/utils.spec.ts index 9955dfe413..2c057336a8 100644 --- a/aio/tools/translator/utils.spec.ts +++ b/aio/tools/translator/utils.spec.ts @@ -279,6 +279,18 @@ ng generate directive highlight `); }); + + it('拆解任意位置的 ', function () { + expect(normalizeLines(` + abc +`)).eql(` + + + abc + + +`); + }); it('拆解独行的 li', function () { expect(normalizeLines(`