-
Notifications
You must be signed in to change notification settings - Fork 713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable content being interpreted while we want raw text #1351
Comments
I couldn't find a way to do what you want! I think we might need a new predefined variable, e.g. RUNNING_PAGE_NAME_TEXT that is defined as literal text rather than the wiki name. |
You can do this using the (new-ish #1310) no links prefix (^) on your table. This will prevent the wiki from messing with your inputs by creating links on wiki words or e-mail addresses, but will still stranslate symbols like ${RUNNING_PAGE_NAME} or !today (as opposed to using a ! as table prefix) Example that sets the plain text value to a slim symbol:
edit: having said that, I think just using ! should also work, as I think that these variables will also expand there. Check the link six42 posted below :) |
Hi Bruce
Did you tried the table flags described here: http://fitnesse.org/FitNesse.UserGuide.FitNesseWiki.MarkupLanguageReference.MarkupTable
|
I forgot about the table prefix flags! |
Hmmm thanks for this link, I will have a deeper look at and test it ! |
Hello there,
I've googled a lot about this but couldn't find any answer. Also I don't know if this could be a bug or a feature request, so please be kind if I'm in the wrong section 😛
I want to use for example existing FitNesse variable like ${RUNNING_PAGE_NAME} which gives me the current test page name.
This gives something like "MyPageName", which will be interpreted by the renderer as it is camel case syntax, so on the page it will be replaced by an HTML link like "MyPageName".
But in our case we want to use this "MyPageName" as raw text (without the HTML stuff around) to pass it along to the fixture code (C++ code using CSlim in our case).
I've tried a lot of combinations using !- -! to have markup literal text, but none worked. Always getting "${myVar}" (or "${RUNNING_PAGE_NAME}" in my example) as raw text, not the content of the variable.
Any thoughts on this one?
Thanks a lot in advance.
Brice
The text was updated successfully, but these errors were encountered: