Skip to content

Commit a6cb06e

Browse files
committed
Fix the formatting of the topic.namespace.map documentation
1 parent 76e122b commit a6cb06e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/com/mongodb/kafka/connect/source/MongoSourceConfig.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,25 +219,25 @@ public class MongoSourceConfig extends AbstractConfig {
219219
+ " suffixed with the value of `sep` if and only if the value of `coll` is not empty."
220220
+ "\n - `sep_coll_sep` The value of the `coll` variable"
221221
+ " prefixed and suffixed with the value of `sep` if and only if the value of `coll` is not empty."
222-
+ "\n To be expanded, a variable must be enclosed between curly brackets '{' and '}', for example '{db}'."
222+
+ "\n To be expanded, a variable must be enclosed between curly brackets '{' and '}', for example '{db}'."
223223
+ " The characters '{' and '}' are not allowed to be used in the topic name template for any other purpose."
224224
+ " Note that variable names are case-sensitive."
225-
+ "\nBe careful when creating a namespace pattern with characters that need escaping according to the JSON syntax."
225+
+ "\n Be careful when creating a namespace pattern with characters that need escaping according to the JSON syntax."
226226
+ " For example, if you want to match full stop '.', the regex syntax requires escaping it as '\\.'."
227227
+ " However, reverse solidus '\\' itself must be escaped as '\\\\' according to the JSON syntax."
228228
+ " Consequently, to match '.' you need to write '\\\\.'."
229229
+ "\n- Wildcard. The namespace pattern is asterisk '*' and matches any namespace."
230230
+ " The topic name template is interpreted as the topic name."
231-
+ "\n The matching order:"
231+
+ "\nThe matching order:"
232232
+ "\n1. Simple pairs with a collection name in the namespace pattern."
233233
+ "\n2. Simple pairs without a collection name in the namespace pattern."
234234
+ "\n3. Regex pairs in order."
235235
+ "\n4. The wildcard pair."
236-
+ "\n Matching stops as soon as the first match is found. If no matches are found,"
236+
+ "\n Matching stops as soon as the first match is found. If no matches are found,"
237237
+ " the topic name is computed solely based on the namespace. The namespace may either have a collection name, or not:"
238-
+ "\n- If there is a collection name, then the topic name is computed"
238+
+ "\n - If there is a collection name, then the topic name is computed"
239239
+ " by concatenating the database name and the collection name, separated by `topic.separator`."
240-
+ "\n- If there is no collection name, then the database name is used as the topic name."
240+
+ "\n - If there is no collection name, then the database name is used as the topic name."
241241
+ "\nExamples (`topic.separator` is assumed to be '-'):"
242242
+ "\n1. '{\"myDb\": \"topicTwo\", \"myDb.myColl\": \"topicOne\"}'"
243243
+ " The 'myDb.myColl' namespace is mapped to the 'topicOne' topic name."

0 commit comments

Comments
 (0)