I'm trying to create a label and I copied it from another label's code. The new label is printing 2 extra unwanted characters side by side; an ampersand and a cent sign. I double checked that line of code in my original and new label and they match exactly, but the original label prints just fine, with no unwanted characters.
Related
If I have an ohmyzsh theme that uses %~/ to get the current directory path. Is there a way to tell it that if the line length requires wrapping onto a new line, to use just the current directory without the full path?
Not exactly, but Zsh can actually do something better than that! You can use %-X<Y<Z%<< to ensure you always have at least X characters remaining after your prompt, by trimming the left side of Z and replacing the trimmed part with Y. (Note that Y itself is always printed literally and any prompt escape sequences inside it will not be expanded. If you want to style Y differently from Z, you will have to put the prompt escapes before and after %X<Y<.)
For example:
PS1=$'\n%-40<...<%~%<<%# '
What this does:
If expanding %~ would leave 40 or more characters of empty space on the line, then expand it in full.
Else, print a ... to the left of %~ and trim off characters from the left of %~'s expansion until our prompt leaves exactly 40 characters of empty space on the line.
Always expand %# after this (since it occurs after %<<).
The nice thing about this is that it works for the current prompt even when you resize your terminal. Just try it and you'll see it will dynamically add or remove characters as you resize.
I have an odd situation that I haven't been able to find an answer to. In Power Query, my custom columns have suddenly developed an apostrophe before the field name.
[
The code line is below, which doesn't include any tick marks and the field is formatted as dates so not sure where this is coming from. I tried deleting the apostrophe manually once the results loaded in Excel, but wasn't successful (delete apostrophe, hit enter, return to cell and it's still there). Any ideas?
"Added Custom" = Table.AddColumn(#"Changed Type3", "Renewal_Date", each Date.EndOfMonth([DATE_MATURITY_NEXT]))
There is no apostrophe in the field name. You are loading the results into a table on the excel sheet, and that is how it displays left-aligned text in the formula bar. Try formatting the cell as right-aligned and the display will show "Renewal_Date; with center alignment formatting will show ^Renewal_Date
See prefix section of excel documentation
Text value corresponding to the "label prefix" of the cell. Returns single quotation mark (') if the cell contains left-aligned text, double quotation mark (") if the cell contains right-aligned text, caret (^) if the cell contains centered text, backslash () if the cell contains fill-aligned text, and empty text ("") if the cell contains anything else.
I'm using data merge to import two variables per line, and have checked the "Remove blank lines for empty fields" box. The result is a wealth of extra characters that I can't remove using find-and-replace. Of the 24 lines of variables, typically only three contain text, so the other 21 should be empty lines and be deleted by the "Remove blank lines" option.
Attempting to paste these characters into the "find and replace" field, I see
^|^|^|^|^|^|^|^|^|^|^|^|^|^|
Any suggestions? Thanks
Try doing a regular text find/change.
In the Find What field, type < FEFF > (but delete the spaces before and after those angle brackets – the Stack Overflow editor seems to delete this if there are no spaces).
In the Change To, leave blank, and click change all.
Currently in my configuration, Sublime will always preserve a blank line on the bottom of every file when saving. Since the last line is blank, is there any option to hide the appropriate line number?
NOTE: If there was no option in Sublime, is it possible to write a custom extension or plugin to handle it?
Really appreciate for any help,
The only way to do this is to eliminate the last line by using the following setting:
"ensure_newline_at_eof_on_save": false
Sublime is programmed such that when a line is terminated by a newline character (hex 0A, ASCII character 10), the next line is shown, which intuitively is the correct thing to do. All text editors that I know of have this behavior. Therefore, the only way to "hide" the last line number in the gutter is to not have a newline character terminating the previous line.
When I'm using ShowText's whitespace (spacebar spaces) (in Block Composer), it only works in middle of the texts but not at the beginning of the text. I assumed it is because PDFClown do trim the whitespace characters.
So is there special character I can use in place of whitespace so it won't get trimmed?
Yes, leading whitespace is purposely trimmed off: if you need to indent your paragraph then use the BlockComposer.ShowBreak(SizeF) method specifying a horizontal offset (for example blockComposer.ShowBreak(new SizeF(10,0))).