Skip to content

Commit

Permalink
tsp, escape tab in javadoc (#2646)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Mar 27, 2024
1 parent bc9493b commit b91bf5e
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ private static String processText(String value) {
if (text != null) {
// escape the "@"
text = ESCAPE_AT.matcher(text).replaceAll("@");
// escape tab
text = text.replace("\t", " ");
}
return CodeNamer.escapeComment(text);
}
Expand Down
4 changes: 4 additions & 0 deletions typespec-extension/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 0.15.5 (2024-03-27)

Compatible with compiler 0.54.

## 0.15.4 (2024-03-26)

Compatible with compiler 0.54.
Expand Down
4 changes: 2 additions & 2 deletions typespec-extension/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion typespec-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure-tools/typespec-java",
"version": "0.15.4",
"version": "0.15.5",
"description": "TypeSpec library for emitting Java client from the TypeSpec REST protocol binding",
"keywords": [
"TypeSpec"
Expand Down
2 changes: 1 addition & 1 deletion typespec-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@azure-tools/cadl-ranch-specs": "0.31.5",
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.15.4.tgz"
"@azure-tools/typespec-java": "file:/../typespec-extension/azure-tools-typespec-java-0.15.5.tgz"
},
"devDependencies": {
"@typespec/prettier-plugin-typespec": "~0.54.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/**
* summary of Response
*
* description of Response.
* description of Response. Include tab ' ' in doc.
*/
@Immutable
public final class DataResponse implements JsonSerializable<DataResponse> {
Expand Down
2 changes: 1 addition & 1 deletion typespec-tests/tsp/naming.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ using Azure.ClientGenerator.Core;
namespace Cadl.Naming;

@summary("summary of Response")
@doc("description of Response")
@doc("description of Response. Include tab ' ' in doc.")
@friendlyName("DataResponse")
model Response {
@summary("summary of name property")
Expand Down

0 comments on commit b91bf5e

Please sign in to comment.