Skip to content

Commit

Permalink
Added doc for singleline text operation
Browse files Browse the repository at this point in the history
  • Loading branch information
ishubin committed Jul 15, 2016
1 parent a2f6a80 commit 5b97a17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion db/docs/reference-galen-spec-language-guide.blogix
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,11 @@ $$

h3. Text operations

Sometimes you don't want to check the text case sensitive. For this purpose you can rely on special text operations. At the moment only these operations are supported: *lowercase* and *uppercase*.
Sometimes you don't want to check the text case sensitive. For this purpose you can rely on special text operations. At the moment only these operations are supported:

* @lowercase@ - changes all letters to lower case
* @uppercase@ - changes all letters to upper case
* @singleline@ - replaces all newline symbols with space

$$ galen-specs
greeting:
Expand All @@ -756,9 +760,11 @@ greeting:
text lowercase ends "website!"
text lowercase contains "to our cool"
text lowercase matches "welcome .* to our cool website!"
text singleline is "welcome user@example.com to our cool website!"
$$



h2. CSS Properties

By analogy of "text spec":#Text the @css@ spec allows you to test the value of a CSS property of a specific element. For instance you can check the @font-size@, @font-family@, @background-color@ or any other CSS property you want. Use it in a same way as @text@ property:
Expand Down
2 changes: 1 addition & 1 deletion public/galen-highlight-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ var GalenHighlightV2 = GalenHighlightV2 || {
"edge", "width", "height", "image", "below", "component",
"centered", "text", "near", "partly", "horizontally",
"vertically", "all", "is", "starts", "ends", "contains",
"matches", "uppercase", "lowercase", "inside", "on",
"matches", "uppercase", "lowercase", "singleline", "inside", "on",
"css", "aligned", "right", "left", "top", "bottom", "absent", "visible",
"right-of", "left-of", "above", "color-scheme",
"count", "any", "to", "frame"
Expand Down

0 comments on commit 5b97a17

Please sign in to comment.