35 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
3
answers
151
views
VBA Selection.InsertCaption and automatically adding non-breaking space between the label and number
Recently I had the pleasure to review a few specification documents edited in MS Word, containing around 1000 tables and figures, each of those with a caption that did not separate caption label and ...
1
vote
1
answer
186
views
Normalization in cypress
I am running my cypress test and I am trying to assert this, but the test is failing because of the HTML Non-breaking spaces
cy.get('h3').should('contain.text', `Allocations for ${name}, ${role}`);
...
0
votes
0
answers
70
views
Narrow no-break space not functioning in Firefox?
My question is related to this post : How to render narrow non-breaking spaces in HTML for Windows?
According to a 2021 addendum, the NNBSP character should be correctly rendered in "all major ...
16
votes
2
answers
5k
views
Java 21 problem with DateFormat.getDateTimeInstance().format(new Date())
This is my code
import java.util.Date;
import java.text.DateFormat;
class DateTime {
public static void main(String[] args) {
String dt = DateFormat.getDateTimeInstance().format(new Date()...
1
vote
1
answer
211
views
Can Microsoft Word VBA automatically insert a non-breaking space into a caption, e.g. Table or Figure caption?
I inherited Word VBA code that inserts an auto-numbered caption for a table or figure, e.g. Table 1. I want there to be a non-breaking space between the label, e.g. Table, and the number, but I ...
1
vote
3
answers
439
views
Replacing characters in R string based on raw hex values
Suppose I have a string in R,
mystring = 'help me'
but with a twist: The space between 'help' and 'me' is actually a non-breaking space. Non-breaking space is stored in R as <c2 a0>, so this ...
1
vote
2
answers
72
views
Replacing space after number with hard space in p tag
I would like to replace a space after a number with hard-space " " only in p tags.
I wrote this code:
$pattern = "/<p>[0-9] <\/p>/";
return preg_replace($pattern, ...
0
votes
0
answers
63
views
How could I fix this white space replacement code?
I've replaced all white spaces with non-breaking space in categories with the jquery below. However, it doesn't seem to work for categories found in blog pages. I did a site inspect and found that the ...
0
votes
3
answers
1k
views
how to compare numbers in cypress
I'm new to Cypress and I need to compare theese two numbers: 1045,92 and 1045,92
<div class="header-icon__text" data-pl-cart-in-
total>1 045,92 р.</div>
<...
1
vote
1
answer
798
views
Replace spaces with non-breaking spaces according to a specific criterion
I want to clean up files that contain bad formatting, more precisely, replace "normal" spaces with non-breaking spaces according to a given criterion.
For example:
If in a sentence, I have:
&...
1
vote
3
answers
3k
views
remove non breaking space in power query
Just come across an interesting issue where PQ isn't transforming seemingly identical data in the same way.
As an example here I just wish to replace 24 mg/kg bw/day with Hello:
let
Source = Excel....
4
votes
1
answer
8k
views
How can I make testing-library's getByText() match a string including a non-breaking space ( )?
I'm trying to match a phone number string that includes a non-breaking space:
assert
.dom(
screen.getByText(
[my text with a non-breaking space]
) as HTMLElement
)
.exists();...
2
votes
0
answers
221
views
Non-breaking spaces for use in HTML and HTML-formatted email
I am working with a website that has its origins back in 2001. In those days tables were heavily used for layouts, and Internet Explorer was a dominant browser. Back then there was a requirement to ...
0
votes
3
answers
3k
views
power automate flow - html to text - odd new line
Im struggling with a mail html to text flow.
It works fine normally, but all of a sudden it is inserting a "\n" that shouldnt be there and comparing the   to the other lines where it ...
1
vote
1
answer
959
views
How Can I Remove Non-Breaking Leading Whitespace in Matlab?
Say I have a string variable, " Fruit".
Usually, I use strtrim() to remove the leading whitespace. Therefore, " Fruit" becomes "Fruit".
However, if the leading whitespace ...