From de3a9560d90d2f2c24ba05959277af05f3f099eb Mon Sep 17 00:00:00 2001 From: Jinghu Wang Date: Thu, 5 Apr 2018 20:24:30 +0800 Subject: [PATCH] [docs] Fix formatting --- src/docs/asciidoc/core/core-appendix.adoc | 2 +- src/docs/asciidoc/core/core-databuffer-codec.adoc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/docs/asciidoc/core/core-appendix.adoc b/src/docs/asciidoc/core/core-appendix.adoc index 714af013c59..b0812a1826c 100644 --- a/src/docs/asciidoc/core/core-appendix.adoc +++ b/src/docs/asciidoc/core/core-appendix.adoc @@ -156,7 +156,7 @@ Now consider a setter of type `PersistenceContextType`: } ---- -.. and the corresponding bean definition: +and the corresponding bean definition: [source,xml,indent=0] [subs="verbatim,quotes"] diff --git a/src/docs/asciidoc/core/core-databuffer-codec.adoc b/src/docs/asciidoc/core/core-databuffer-codec.adoc index 5117ce074b4..01c0b4f4d3c 100644 --- a/src/docs/asciidoc/core/core-databuffer-codec.adoc +++ b/src/docs/asciidoc/core/core-databuffer-codec.adoc @@ -43,6 +43,8 @@ This is different from the JDK's `ByteBuffer`, which only exposes one position f writing, and a separate `flip()` operation to switch between the two I/O operations. In general, the following invariant holds for the read position, write position, and the capacity: +[literal] +[subs="verbatim,quotes"] -- `0` <= _read position_ <= _write position_ <= _capacity_ --