Skip to content

Commit 4171e35

Browse files
committed
Fix formatting in examples
1 parent bea505d commit 4171e35

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

framework-docs/src/docs/asciidoc/data-access.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,8 +1090,8 @@ application-specific `Exception` type by supplying an _exception pattern_ via th
10901090
----
10911091
<tx:advice id="txAdvice" transaction-manager="txManager">
10921092
<tx:attributes>
1093-
<tx:method name="get*" read-only="true" rollback-for="NoProductInStockException"/>
1094-
<tx:method name="*"/>
1093+
<tx:method name="get*" read-only="true" rollback-for="NoProductInStockException"/>
1094+
<tx:method name="*"/>
10951095
</tx:attributes>
10961096
</tx:advice>
10971097
----
@@ -1105,8 +1105,8 @@ unhandled `InstrumentNotFoundException`:
11051105
----
11061106
<tx:advice id="txAdvice">
11071107
<tx:attributes>
1108-
<tx:method name="updateStock" no-rollback-for="InstrumentNotFoundException"/>
1109-
<tx:method name="*"/>
1108+
<tx:method name="updateStock" no-rollback-for="InstrumentNotFoundException"/>
1109+
<tx:method name="*"/>
11101110
</tx:attributes>
11111111
</tx:advice>
11121112
----
@@ -1121,7 +1121,7 @@ attendant transaction:
11211121
----
11221122
<tx:advice id="txAdvice">
11231123
<tx:attributes>
1124-
<tx:method name="*" rollback-for="Throwable" no-rollback-for="InstrumentNotFoundException"/>
1124+
<tx:method name="*" rollback-for="Throwable" no-rollback-for="InstrumentNotFoundException"/>
11251125
</tx:attributes>
11261126
</tx:advice>
11271127
----

framework-docs/src/docs/asciidoc/web/webmvc-functional.adoc

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -238,46 +238,46 @@ allows you to send Strings, or other objects as JSON. For example:
238238
.Java
239239
----
240240
public RouterFunction<ServerResponse> sse() {
241-
return route(GET("/sse"), request -> ServerResponse.sse(sseBuilder -> {
242-
// Save the sseBuilder object somewhere..
243-
}));
241+
return route(GET("/sse"), request -> ServerResponse.sse(sseBuilder -> {
242+
// Save the sseBuilder object somewhere..
243+
}));
244244
}
245245
246246
// In some other thread, sending a String
247247
sseBuilder.send("Hello world");
248248
249249
// Or an object, which will be transformed into JSON
250-
Person person = ...
250+
Person person = ...
251251
sseBuilder.send(person);
252252
253-
// Customize the event by using the other methods
254-
sseBuilder.id("42")
255-
.event("sse event")
256-
.data(person);
253+
// Customize the event by using the other methods
254+
sseBuilder.id("42")
255+
.event("sse event")
256+
.data(person);
257257
258258
// and done at some point
259259
sseBuilder.complete();
260260
----
261261
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
262262
.Kotlin
263263
----
264-
fun sse(): RouterFunction<ServerResponse> = router {
265-
GET("/sse") { request -> ServerResponse.sse { sseBuilder ->
266-
// Save the sseBuilder object somewhere..
267-
}
268-
}
264+
fun sse(): RouterFunction<ServerResponse> = router {
265+
GET("/sse") { request -> ServerResponse.sse { sseBuilder ->
266+
// Save the sseBuilder object somewhere..
267+
}
268+
}
269269
270270
// In some other thread, sending a String
271271
sseBuilder.send("Hello world")
272272
273273
// Or an object, which will be transformed into JSON
274-
val person = ...
274+
val person = ...
275275
sseBuilder.send(person)
276276
277-
// Customize the event by using the other methods
278-
sseBuilder.id("42")
279-
.event("sse event")
280-
.data(person)
277+
// Customize the event by using the other methods
278+
sseBuilder.id("42")
279+
.event("sse event")
280+
.data(person)
281281
282282
// and done at some point
283283
sseBuilder.complete()

0 commit comments

Comments
 (0)