trim extra info

This commit is contained in:
woodser 2025-05-17 09:53:00 -04:00
parent 45a13dfd2a
commit 52c1c70a31
No known key found for this signature in database
GPG key ID: 55A10DD48ADEE5EF
2 changed files with 3 additions and 3 deletions

View file

@ -504,7 +504,7 @@ public abstract class MutableOfferViewModel<M extends MutableOfferDataModel> ext
extraInfoStringListener = (ov, oldValue, newValue) -> {
if (newValue != null) {
extraInfo.set(newValue);
extraInfo.set(newValue.trim());
UserThread.execute(() -> onExtraInfoTextAreaChanged());
}
};

View file

@ -362,7 +362,7 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
// attach extra info text area
extraInfoTextArea = addCompactTopLabelTextArea(gridPane, ++lastGridRowNoFundingRequired, Res.get("payment.shared.extraInfo.noDeposit"), "").second;
extraInfoTextArea.setText(offer.getCombinedExtraInfo());
extraInfoTextArea.setText(offer.getCombinedExtraInfo().trim());
extraInfoTextArea.getStyleClass().add("text-area");
extraInfoTextArea.setWrapText(true);
extraInfoTextArea.setMaxHeight(300);
@ -1146,7 +1146,7 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
UserThread.runAfter(() -> {
new GenericMessageWindow()
.preamble(Res.get("payment.tradingRestrictions"))
.instruction(offer.getCombinedExtraInfo())
.instruction(offer.getCombinedExtraInfo().trim())
.actionButtonText(Res.get("shared.iConfirm"))
.closeButtonText(Res.get("shared.close"))
.width(Layout.INITIAL_WINDOW_WIDTH)